Creating symlinks with java

T

Thomas Kuhlmann

Hi,

I like to duplicate a whole directory-tree (unix or windows) using a
java-class.
But under unix a directory may contain symlinks and I want to
duplicate the directory with all symlinks without resolving the
symlinks:

src-path/file -> anywhere-else/file --->
dst-path/file -> anywhere-else/file

So does anybody know any way to create symlinks using java???

TIA for any help.

Thomas
 
G

Gordon Beaton

I like to duplicate a whole directory-tree (unix or windows) using a
java-class.
But under unix a directory may contain symlinks and I want to
duplicate the directory with all symlinks without resolving the
symlinks:

src-path/file -> anywhere-else/file --->
dst-path/file -> anywhere-else/file

So does anybody know any way to create symlinks using java???

Native code or an external helper.

/gordon
 
H

hiwa

Hi,

I like to duplicate a whole directory-tree (unix or windows) using a
java-class.
But under unix a directory may contain symlinks and I want to
duplicate the directory with all symlinks without resolving the
symlinks:

src-path/file -> anywhere-else/file --->
dst-path/file -> anywhere-else/file

So does anybody know any way to create symlinks using java???

TIA for any help.

Thomas

Under the current File class spec, Runtime.exec() would be only soulution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top