comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: recursive FILE_SEARCH in a symbolic link ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: recursive FILE_SEARCH in a symbolic link ? [message #71466 is a reply to message #71368] Thu, 17 June 2010 18:03 Go to previous message
Heinz Stege is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: New tool: sort points by countries with a shapefile and IDL
Next Topic: Memory Cleanup-- Messy structure

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 04:45:18 PDT 2025

Total time taken to generate the page: 1.36153 seconds