Re: recursive FILE_SEARCH in a symbolic link ? [message #71368] |
Thu, 17 June 2010 13:56  |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
I'm working in Linux...
What I mean is that I do not want a code that does not work in
Windows, that's all.
My symbolic links are links to directories created using the command
ln -s target link_name
nata
|
|
|
|
Re: recursive FILE_SEARCH in a symbolic link ? [message #71466 is a reply to message #71368] |
Thu, 17 June 2010 18:03  |
Heinz Stege
Messages: 189 Registered: January 2003
|
Senior Member |
|
|
On Thu, 17 Jun 2010 13:56:33 -0700 (PDT), nata wrote:
> I'm working in Linux...
> What I mean is that I do not want a code that does not work in
> Windows, that's all.
>
> My symbolic links are links to directories created using the command
> ln -s target link_name
>
> nata
Hello nata,
I made a test on Windows. I created some links on a NTFS drive with
the cygwin ln-command:
$ ln text.txt hardlink_to_file.txt
$ ln -s text.txt softlink_to_file.txt
$ ln -s ../folder2 softlink_to_folder
And what shall I say, FILE_SEARCH finds them all. Here are the
results:
IDL> f=file_search('test\folder','*')
IDL> print,f,format='(a)'
test\folder\hardlink_to_file.txt
test\folder\softlink_to_file.txt.lnk
test\folder\softlink_to_folder.lnk
test\folder\test.txt
IDL> print,!version
{ x86 Win32 Windows Microsoft Windows 7.1.2 Oct 28 2009 32
64}
Note that Windows added the extension ".lnk" to the soft links.
HTH, Heinz
|
|
|