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 b3756e2 commit a0f343eCopy full SHA for a0f343e
graalpython/org.graalvm.python.embedding/src/org/graalvm/python/embedding/utils/VirtualFileSystem.java
@@ -834,7 +834,16 @@ public void close() throws IOException {
834
835
@Override
836
public Iterator<Path> iterator() {
837
- return dirEntry.entries.stream().map(e -> Path.of(e.getPlatformPath())).iterator();
+ return dirEntry.entries.stream().filter(e -> {
838
+ boolean accept = false;
839
+ try {
840
+ accept = filter.accept(Path.of(e.platformPath));
841
+ } catch (IOException ex) {
842
+ ex.printStackTrace();
843
+ return false;
844
+ }
845
+ return accept;
846
+ }).map(e -> Path.of(e.getPlatformPath())).iterator();
847
}
848
};
849
} else {
0 commit comments