We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156c1ed commit 8600288Copy full SHA for 8600288
libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/FileAccessTree.java
@@ -11,8 +11,8 @@
11
12
import org.elasticsearch.entitlement.runtime.policy.entitlements.FileEntitlement;
13
14
-import java.io.File;
15
import java.nio.file.Path;
+import java.nio.file.Paths;
16
import java.util.ArrayList;
17
import java.util.Arrays;
18
import java.util.List;
@@ -55,7 +55,7 @@ boolean canWrite(Path path) {
55
}
56
57
private static String normalizedPath(FileEntitlement fileEntitlement) {
58
- return normalize(new File(fileEntitlement.path()).toPath());
+ return normalize(Paths.get(fileEntitlement.path()));
59
60
61
private static String normalize(Path path) {
0 commit comments