<<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.

topisadirectory Input/Output

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 371 2008-08-07 09:32:02Z pinsard $

History

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

Statistics

McCabe cyclic 10
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.