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

Home » Public Forums » archive » Re: expand_path
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
Re: expand_path [message #10341] Wed, 19 November 1997 00:00
James Tappin is currently offline  James Tappin
Messages: 54
Registered: December 1995
Member
Theo Brauers wrote:
>
> Hi.
>
> I am writing a tools to find data files in a tree of
> directories. I tried to use expand_path to find all sub dirs
> of a given path:
>
> path_array=expand_path(path, /array, count=cnt)
>
> it works fine if all dirs contain .pro or .sav files and
> this is consistent with the help of expand_path:
[snip]
> In order to find other files than .pro or .sav I am looking
> for a routine not having the restriction 3. a work around is
> copying an empty null.pro into all dirs to be scanned but I
> dont like this.
>
> Thanks for any help
>
> Theo

For a Unix (or Linux) system the following should work:

spawn, 'find '+path+' -type d -print', path_array

VMS & Toys I don't know about.


--
+------------------------+-------------------------------+-- -------+
| James Tappin, | School of Physics & Astronomy | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722 | |
+--------------------------------------------------------+-- -------+
Re: expand_path [message #10360 is a reply to message #10341] Mon, 17 November 1997 00:00 Go to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
Theo Brauers wrote:

> I am writing a tools to find data files in a tree of
> directories.

I find Bill Thompson's FIND_WITH_DEF function very useful for finding a
file in a !PATH like directory tree. You can get a V5.0 version from

http://idlastro.gsfc.nasa.gov/ftp/v5/pro/

You'll also need the functions BREAK_PATH and FIND_ALL_DIR from this
site.

You can also get a V4.0 version from

http://sohowww.nascom.nasa.gov/solarsoft/gen/idl/system/

Wayne Landsman landsman@mpb.gsfc.nasa.gov
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Use of IDL for Wound Care imaging
Next Topic: Re: FFT-bug???? (PV-Wave)

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

Current Time: Wed Oct 08 11:34:51 PDT 2025

Total time taken to generate the page: 0.00732 seconds