FileMode package:unix-compat

File mode (such as permissions).
Combines two file modes into one that only contains modes that appear in both.
No permissions.
setFileMode path mode changes permission of the file given by path to mode. This operation may fail with throwErrnoPathIfMinus1_ if path doesn't exist or if the effective user ID of the current process is not that of the file's owner. Note: calls chmod.
Owner, group and others have read and write permission.
Combines the two file modes into one that contains modes that appear in either.