$isdir

From Scriptwiki
Revision as of 11:36, 16 May 2007 by Ollie (talk | contribs) (page spacing)

Jump to: navigation, search

Returns informations on whether or not a directory exists.

$isdir(directory)

Returns $true if the directory exists, otherwise it will return $false

Examples

alias exists? {
 if ($isdir($1)) { return directory exists! } | else { return directory doesn't exist }
}

$isdir(C:\program files\mirc)

See also

$isfile to check if a file exists.