[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FINDFILE and Unix



In article <389877C1.39D7C9C4@lheapop.gsfc.nasa.gov>,
 tam <tam@lheapop.gsfc.nasa.gov> writes:

>Findfile on unix is rather more of a direct invocation of ls than
>you might imagine.
>
>E.g., to get only files and directories in a given directory without
>looking in subdirectories...
>
>files = findfile('-d somedirectory/*')
>
>I.e., you can specify the -d qualifier for the ls command -- and
>as far as I know any other ls qualifier, e.g., you can use -l to get
>the long directory listing...

Thanks for the tip; IDL doesn't document the fact that FINDFILE will accept
ls switches.  This does have a portability problem, though, and it would still
be nice if IDL could implement something that would work on both Unix and
MS Windows.

Doug