Previous SAXO Documentation Assistant: Overview Next

Utilities/

isadirectory.pro

check if a directory exists and make sure that it ends with the directory separator mark.

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, we ask the user to choose a directory.

Keywords

TITLE       

the title of the window

IODIRECTORY       

a proposed directory

_EXTRA       

Used to pass keywords to DIALOG_PICKFILE

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 260 2007-08-20 15:24:57Z pinsard $

History

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

 


  Produced by IDLdoc 2.0.