From cebacc27a48168e666679018f8e27156d12d4527 Mon Sep 17 00:00:00 2001 From: Agando Date: Wed, 17 Jun 2026 06:01:20 +0200 Subject: auto: 2026-06-17_06:01 changes --- modules/ext/webdav.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'modules/ext/webdav.js') diff --git a/modules/ext/webdav.js b/modules/ext/webdav.js index 8096b2e..464db16 100644 --- a/modules/ext/webdav.js +++ b/modules/ext/webdav.js @@ -626,11 +626,23 @@ class WebDAVModule { // Build structured export: root + currentPath + aliases + moduleRegistry let exportData; try { + // Deep-clone and strip system dirs to prevent fractal bloat + let rootForExport; + try { + rootForExport = JSON.parse(JSON.stringify(self.terminal.fs.root)); + if (rootForExport && rootForExport.content) { + delete rootForExport.content['_sessions']; + delete rootForExport.content['_snapshots']; + delete rootForExport.content['.trash']; + } + } catch (e) { + rootForExport = self.terminal.fs.root; + } exportData = { type: 'webx11-backup', version: 2, savedAt: new Date().toISOString(), - root: self.terminal.fs.root, + root: rootForExport, currentPath: self.terminal.fs.currentPath, aliases: self.terminal.moduleManager.aliases || {}, moduleRegistry: self.terminal.moduleManager.moduleRegistry || [] -- cgit v1.2.3