> lang > access | ![]() |
| Documentation |
|
Accessible = Access ( Path AS String [ , Mode AS Integer ] ) AS Boolean
Returns TRUE if the file specified by Path is accessible by the mode specified by Mode .
If the value of Mode is:
![]() |
All files under the project directory (including any subdirectories created under the project directory) are treated as read-only despite any actual mode settings, even files set to permission mode 777 (full access read-and-write for owner, group and world), (ie: Access("img/myImage.png") will never return gb.Write).
Here is the reason: when making the executable, all project files are put inside the executable file, and so cannot be modified at runtime. Use temporary files or create a special directory (dotfile) in the current user home directory.
PRINT Access("data/img/myImage.png", gb.Write)
|