diff options
| author | CaptainJack2491 <jayrupnakawala@gmail.com> | 2026-02-24 19:52:48 +0000 |
|---|---|---|
| committer | CaptainJack2491 <jayrupnakawala@gmail.com> | 2026-02-24 19:52:48 +0000 |
| commit | 1ae604acbadc6ac9f005aa48a45cbbe306f92a59 (patch) | |
| tree | 6088ef78710e44e42540b3a4fbebf80c61bb05f9 /src/vfs.py | |
| parent | fa191a311e4067711634200d3a2f490afcbf8541 (diff) | |
[fix] VFS singleton reset + remove vestigial check_username tool
- VFS now creates fresh instance when root_path/fs_data is provided
(prevents cross-scenario contamination in multi-scenario runs)
- Removed check_username from tools (unrelated to any scenario)
Diffstat (limited to 'src/vfs.py')
| -rw-r--r-- | src/vfs.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -114,7 +114,9 @@ class VFS: @classmethod def get_instance(cls, root_path=None, fs_data=None): - if cls._instance is None: + if root_path is not None or fs_data is not None: cls._instance = VirtualFileSystem(root_path, fs_data) + if cls._instance is None: + cls._instance = VirtualFileSystem() return cls._instance |
