<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

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.

topisadirectory 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       

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

History

Sebastien Masson (smasson@lodyc.jussieu.fr) June 28, 2000 June 2005: Sebastien Masson: cleaning, use for file_* functions
Produced by IDLdoc 2.0.