>  Docs Center  >  Libraries  >  Coyote  >  DIRPATH

DIRPATH

DIRPATH

Name


    DIRPATH

Purpose



    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.

Author



  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/

Category



    Utility.

Calling Sequence



    IDL> theDirectory = DIRPATH('examples')
    IDL> Print, theDirectory
            C:\IDL\IDL56\examples

Inputs



    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 ("").

Keywords



    ROOT_DIRECTORY: The name of the root directory to use. By default,
                    the root directory is set to !DIR.

Outputs



    The machine-independent directory path.

Modification History



    Written by: David W. Fanning, 28 April 2003.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us