diff --git a/src/system.js b/src/system.js index 89ebb014f..620255695 100644 --- a/src/system.js +++ b/src/system.js @@ -114,6 +114,15 @@ async function getDisks() { disks[dfResult?.filesystem || rootDisk.filesystem].contents.push({ type: 'app', id: app.id, path: dataDir }); } + const swaps = await getSwaps(); + for (const k in swaps) { + const swap = swaps[k]; + if (swap.type !== 'file') continue; + + const [, dfResult] = await safe(df.file(swap.name)); + disks[dfResult?.filesystem || rootDisk.filesystem].contents.push({ type: 'swap', id: swap.name, path: swap.name }); + } + return disks; }