$isdir: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Ollie (talk | contribs)
m page spacing
m redirect
Line 1: Line 1:
Returns informations on whether or not a directory exists.
#redirect [[$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.
 
 
[[Category:File and Directory Identifiers]]

Revision as of 08:33, 18 May 2007

Redirect to: