Skip to content

Commit 249fff4

Browse files
committed
If we open a ZIP-FileSystem we should close it afterwards...
Maybe this whole approach needs refactoring, but for the moment dividing it into several classes will only decrease readability I think for we have only the two possibilities.
1 parent aa60fda commit 249fff4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/utplsql/api/ResourceUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public static List<Path> getListOfChildren(Path resourceAsPath, boolean filesOnl
7272
result.add(entryPath.subpath(relativeStartIndex, entryPath.getNameCount()));
7373
}
7474
}
75+
resourcePath.getFileSystem().close();
7576
} else {
7677
Files.walk(resourcePath)
7778
.filter(p -> !filesOnly || p.toFile().isFile())

0 commit comments

Comments
 (0)