Mode(path/filename) will return the octal permission mask on a file from within processing.
see also group()