Package org.elasticsearch.test
Class PosixPermissionsResetter
java.lang.Object
org.elasticsearch.test.PosixPermissionsResetter
- All Implemented Interfaces:
AutoCloseable
Stores the posix attributes for a path and resets them on close.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
setPermissions
(Set<PosixFilePermission> newPermissions)
-
Constructor Details
-
PosixPermissionsResetter
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
setPermissions
- Throws:
IOException
-
getCopyPermissions
-