diff --git a/src/system.js b/src/system.js index 8d0cb7c50..d44d43012 100644 --- a/src/system.js +++ b/src/system.js @@ -163,7 +163,7 @@ async function getFilesystems() { if (!app.manifest.addons?.localstorage) continue; const dataDir = await apps.getStorageDir(app); - if (dataDir === null) continue; + if (dataDir === null || !fs.existsSync(dataDir)) continue; // when restoring, this path may not be available yet const [, dfResult] = await safe(df.file(dataDir)); const filesystem = dfResult?.filesystem || rootDisk.filesystem; if (filesystems[filesystem]) filesystems[filesystem].contents.push({ type: 'app', id: app.id, name: app.label || app.fqdn, path: dataDir });