diff options
| author | Agando <roduccomm@gmail.com> | 2026-06-09 06:00:43 +0200 |
|---|---|---|
| committer | Agando <roduccomm@gmail.com> | 2026-06-09 06:00:43 +0200 |
| commit | 9f60030e39feecc76f11671a4b9d82303c83670c (patch) | |
| tree | cd4d35985f98aef0f4e688e4bcc283a476c8cd3b /modules/core/virtual-fs.js | |
| parent | b562e1491513163921593985f3542d4ee8ae0e75 (diff) | |
auto: 2026-06-09_06:00 changes
Diffstat (limited to 'modules/core/virtual-fs.js')
| -rw-r--r-- | modules/core/virtual-fs.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/core/virtual-fs.js b/modules/core/virtual-fs.js index cb8020a..f6e2826 100644 --- a/modules/core/virtual-fs.js +++ b/modules/core/virtual-fs.js @@ -545,6 +545,13 @@ class VirtualFileSystem { mkdir(path) { return this.mkdirRecursive(path); } list(path) { return this.ls(path); } dir(path) { return this.ls(path); } + reset() { + this.root = { type: 'dir', content: {} }; + this.currentPath = []; + // Wipe all localStorage keys + ['webx11_filesystem', 'webx11_filesystem_v2'].forEach(k => localStorage.removeItem(k)); + return true; + } } // Also expose for module system |