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

Home » Public Forums » archive » findfile()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
findfile() [message #9063] Thu, 29 May 1997 00:00 Go to next message
R. Bauer is currently offline  R. Bauer
Messages: 137
Registered: November 1996
Senior Member
Hi

I found Differences for findfile:

On idl4.0.1 for PC I got with print,findfile('*.*') all directories too.
They are separated with a \ from the files.
This is fine, because than it's very easy to write a function to find
only the directories.

The same idl function for unix did not separate the directory names from
the filenames.

In pickfile there is for unix a spawn command used to get the
directories, that's the reason while it's slow.

Did someone have a true idl function for unix without spawn to get the
directories or is this problem fixed in idl5.0



R.Bauer



--
R.Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
Re: findfile() [message #9135 is a reply to message #9063] Mon, 02 June 1997 00:00 Go to previous message
R. Bauer is currently offline  R. Bauer
Messages: 137
Registered: November 1996
Senior Member
Hi,

I got the information from J.-U. Grooss to use instead of the ls spawn
command, findfile with this syntax.

dirs=findfile('-Fd *')

It is possible to set all ls commands in the brackets of findfile.


regards



--
R.Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
Re: findfile() [message #9139 is a reply to message #9063] Sat, 31 May 1997 00:00 Go to previous message
Phil Williams is currently offline  Phil Williams
Messages: 78
Registered: April 1996
Member
HSR Sys-Admin wrote:
>
> Phil Williams <williams@irc.chmcc.org> writes:
>> I had taken some code from David Fanning and extended it a bit to find
>> directories and files, DIREXIST and FILEEXISTS, respectively. Both are
>> available on my website <http://www.irc.chmcc.org/idl/philsIDL.html>.
>
>> Both of these did not work quite right in 4.0 under different platforms
>> (namely Mac and Unix). I think that the problem I was having was fixed
>> in 5.0. I do have a version that should behave as expected under 4.0.1
>> that I could also make available.
>
>> Phil
>
> I took this direxist some weeks ago and was disappointed:
>
> it didn`t work over VMS-Clusters and seems to fail sometimes over NFS
> mounted systems...

I only have UNIX (SGI, Sun, Linux) and macs here. Therefore, all of my
code is tested for these platforms. I probable should make some comment
about that on my webpage...

>
> I rewrote the direxist to be able to all this now...

Could you send me the changes and I'll add them to my code w/ credit of
course.

>
> Its wierd and a three to four pages long program to say: YES or NO!

It was more a programming practice (that and fileexists) and it seemed
useful to me at the time so I mamde it available. Take it or leave it.

Phil
Re: findfile() [message #9140 is a reply to message #9063] Sat, 31 May 1997 00:00 Go to previous message
alpha is currently offline  alpha
Messages: 49
Registered: September 1996
Member
Phil Williams <williams@irc.chmcc.org> writes:
> I had taken some code from David Fanning and extended it a bit to find
> directories and files, DIREXIST and FILEEXISTS, respectively. Both are
> available on my website <http://www.irc.chmcc.org/idl/philsIDL.html>.

> Both of these did not work quite right in 4.0 under different platforms
> (namely Mac and Unix). I think that the problem I was having was fixed
> in 5.0. I do have a version that should behave as expected under 4.0.1
> that I could also make available.

> Phil

I took this direxist some weeks ago and was disappointed:

it didn`t work over VMS-Clusters and seems to fail sometimes over NFS
mounted systems...

I rewrote the direxist to be able to all this now...

Its wierd and a three to four pages long program to say: YES or NO!

Panther



--
Panther in the Jungle __..--''``\--....___ _..,_
-BELIEVE AND DECEIVE- _.-' .-/"; ` ``<._ ``-+'~=.
http://www.ang-physik _.-' _..--.'_ \ `(^) )
.uni-kiel.de/~hendrik ((..-' (< _ ;_..__ ; `'
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL 5.0 observations
Next Topic: Geographical polygons crossing the International Date Line

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

Current Time: Wed Oct 08 09:14:00 PDT 2025

Total time taken to generate the page: 0.00628 seconds