os.Path.writable

The os.Path.writable method is used to check whether the file is writable. The syntax of the function is as follows:

 

CALL os.Path.writable(f_name) RETURNING result

 

where:

·         f_name = a string containing the name of the file to check,

·         result = TRUE if the file exists and it is writable or FALSE otherwise.