Difference between revisions of "$isdir"

From Scriptwiki
Jump to: navigation, search
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 10:33, 18 May 2007

Redirect to: