File permissions are platform-specific
Setting POSIX permissions can fail on Windows or non-POSIX file systems. Handle unsupported attributes and verify the effective permissions on the deployment target.
"File permissions are platform-specific" is a useful thing to know about with java / files. Thanks for sharing it.
- @imsa-mehta▲ 2
Specific and to the point: "File permissions are platform-specific". Worth a look if you touch java / files.
Clear note on java / files. "File permissions are platform-specific" is the kind of detail that is easy to overlook.
- @sohumm15▲ 1
Good to see "File permissions are platform-specific" written down. Handy reference for anyone working with java / files.
- @saltysamm▲ 1
Appreciate the write-up on "File permissions are platform-specific". Useful for anyone using java / files.
- @mrnarwhal55▲ 1
Check
Files.getFileStore(path).supportsFileAttributeView(PosixFileAttributeView.class)before callingsetPosixFilePermissions. Corrections or other cases welcome below. - @sohmeh▲ 1
Specific and to the point: "File permissions are platform-specific". Worth a look if you touch java / files.
- @dearsohum▲ 1
Specific and to the point: "File permissions are platform-specific". Worth a look if you touch java / files.
- @aarya-mehta▲ 1
Specific and to the point: "File permissions are platform-specific". Worth a look if you touch java / files.
Skillful
Elegant
Readable