DIRPATH
The purpose of this function is to return a device-independent name of a directory. It is similar to the IDL-supplied FILEPATH routine, except that a file name is not required.
FANNING SOFTWARE CONSULTING David Fanning, Ph.D. 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: david@idlcoyote.com Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Utility.
IDL> theDirectory = DIRPATH('examples')
IDL> Print, theDirectory
C:\IDL\IDL56\examples
subDirectory: This is a string argument containing the name of the
sub-directory you wish to use. It can be a string
array of sub-directory names. By default, the subDirectory
is set to ['examples', 'data']. To only return the Root_Directory,
set the subDirectory to a null string ("").
ROOT_DIRECTORY: The name of the root directory to use. By default,
the root directory is set to !DIR.
The machine-independent directory path.
Written by: David W. Fanning, 28 April 2003.