Hi,
For a particular set of files, am trying to check if they are writable. i.e., checking whether they are having permissions greater than 755.
Am able to check this using the statement:
"if (os.path.isfile(FILE_PATH) and (os.stat(FILE_PATH).st_mode & 0777) == 0777):"
But the problem here is am exactly not sure, which all are the write permissions on a file.
or, is there any other way to check if file is having permissions greater than 755,
Any help in this regard is useful.
Thanks,
Arjun