kopia lustrzana https://github.com/gaul/s3proxy
Catch UnsupportedOperationException for getPosixFilePermissions and default to PRIVATE on non-POSIX systems
rodzic
3d67b5657a
commit
be8c79b490
|
@ -792,6 +792,9 @@ public abstract class AbstractNio2BlobStore extends BaseBlobStore {
|
|||
Set<PosixFilePermission> permissions;
|
||||
try {
|
||||
permissions = Files.getPosixFilePermissions(path);
|
||||
} catch (UnsupportedOperationException uoe) {
|
||||
// Windows/SMB/other non-POSIX: default to PRIVATE
|
||||
return BlobAccess.PRIVATE;
|
||||
} catch (IOException ioe) {
|
||||
throw new RuntimeException(ioe);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue