Browse Source

Resolve #355

pull/362/head
decebals 5 years ago
parent
commit
0794f5cab2
  1. 9
      pf4j/src/main/java/org/pf4j/util/FileUtils.java

9
pf4j/src/main/java/org/pf4j/util/FileUtils.java

@ -230,7 +230,14 @@ public class FileUtils {
}
public static Path getPath(URI uri, String first, String... more) throws IOException {
return getFileSystem(uri).getPath(first, more);
FileSystem fileSystem = getFileSystem(uri);
Path path = fileSystem.getPath(first, more);
if ("jar".equals(uri.getScheme())) {
// it's a ZipFileSystem
fileSystem.close();
}
return path;
}
public static Path findFile(Path directoryPath, String fileName) {

Loading…
Cancel
Save