read access, read access repeat if locked, write access, write access repeat if locked
These functions checks the access rights for the specified path and directory or file name.
The functions ending with repeat if locked allows you to close the file open in a different application, then continue by pushing [Enter].
Some applications use file access control to temporarily lock access from other applications.
Indirect parameter passing is disabled
1
No. | Type | Description |
---|---|---|
1 input |
string | path and directory or file name If no path is specified, then the working directory is used. |
Type | Description |
---|---|
boolean | Result true if read / write access is given, otherwise false |
echo( read accessible ( "C:\Program Files" ) );
echo( write accessible ( "C:\Program Files\B4P\B4P.exe" ) );
directory create( Test Dir );
echo( read accessible ( Test Dir ) );
echo( write accessible ( Test Dir ) );
directory delete( Test Dir );
true
false
true
true