isWritable
isWritable(S_name[tl_path] ) =>t/nil
Description
Checks if you have permission to write to a file or update a directory. Uses the current SKILL path for relative paths. A path that is anchored to the current directory, for example, ./, ../, or ../../.., and so on, is not considered as a relative path.
Arguments
|
Name of a file or directory you want to find out your write permission on. |
|
Value Returned
|
If S_name exists and you have permission to write or update it. |
|
|
The file does not exist or does exist, but you do not have permission to read it. |
Examples
isWritable("/tmp")
=> t
Result if out.1 does not exist or there is no write permission to it.
isWritable("~/test/out.1")
=> nil
Related Topics
Return to top