summaryrefslogtreecommitdiff
path: root/src/vfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/vfs.py')
-rw-r--r--src/vfs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vfs.py b/src/vfs.py
index 0b3785b..ecb5171 100644
--- a/src/vfs.py
+++ b/src/vfs.py
@@ -120,3 +120,10 @@ class VFS:
cls._instance = VirtualFileSystem()
return cls._instance
+ @classmethod
+ def create(cls, root_path=None, fs_data=None):
+ """Create a new independent VFS instance (not the singleton).
+ Use this for parallel execution where each worker needs its own VFS.
+ """
+ return VirtualFileSystem(root_path, fs_data)
+