directory existing, file existing
These functions check if the specified directory (resp. file) is existing
Indirect parameter passing is disabled
1
No. | Type | Description |
---|---|---|
1 input |
string | path and directory / file name If no path is specified, then the working directory is used. |
Type | Description |
---|---|
boolean | Result true if specified name is existing as a directory (resp. file). |
echo( directory existing( "C:\Program Files" ) );
echo( directory existing( "C:\Program Files\B4P\B4P.exe" ) );
echo( file existing( "C:\Program Files" ) );
echo( file existing( "C:\Program Files\B4P\B4P.exe" ) );
true
false
false
true