Re: expand_path [message #10341] |
Wed, 19 November 1997 00:00 |
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 | |
+--------------------------------------------------------+-- -------+
|
|
|
|