File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
graalpython/org.graalvm.python.embedding/src/org/graalvm/python/embedding/utils Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 40
40
*/
41
41
package org .graalvm .python .embedding .utils ;
42
42
43
+ import java .io .IOException ;
43
44
import java .nio .file .Path ;
44
45
import java .util .function .Predicate ;
45
46
46
- public final class VirtualFileSystem {
47
+ public final class VirtualFileSystem implements AutoCloseable {
47
48
48
49
final VirtualFileSystemImpl impl ;
49
50
@@ -197,4 +198,14 @@ public String getMountPoint() {
197
198
return this .impl .mountPoint .toString ();
198
199
}
199
200
201
+ /**
202
+ * Closes the VirtualFileSystem and frees up potentially allocated resources.
203
+ *
204
+ * @throws IOException if the resources could not be freed.
205
+ */
206
+ @ Override
207
+ public void close () throws IOException {
208
+ impl .close ();
209
+ }
210
+
200
211
}
You can’t perform that action at this time.
0 commit comments