Utilities/
isadirectory.pro
check if a directory exists and make sure that it ends
with the directory separator mark.
all dialog_pickfile keywords (like filter) can be used.
isadirectory io
result = isadirectory([directoryin], TITLE=TITLE, IODIRECTORY=IODIRECTORY, _extra=_extra)
Return value
the directory name
Parameters
directoryin
in
optional
a proposed directory. If neither dirname
input parameter of IODIRECTORY keyword are defined,
the ask the user to choose a directory.
Keywords
TITLE
the title of the window
IODIRECTORY
a proposed directory
_extra
used to pass your keywords
Examples
IDL> print, !dir
/usr/local/rsi/idl_6.0
IDL> print, isadirectory(!dir)
/usr/local/rsi/idl_6.0/
IDL> print, isadirectory(!dir+'notgood')
Version history
Version
$Id: isadirectory.pro 163 2006-08-29 12:59:46Z navarro $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
June 28, 2000
June 2005: Sebastien Masson: cleaning, use for file_* functions
Produced by IDLdoc 2.0.