#### Alphabetical ```dataview LIST FROM "2 Areas/digital garden" SORT file.name ASC ``` #### Last Updated (newest first) ```dataview LIST FROM "2 Areas/digital garden" SORT modified DESC ``` ```dataviewjs // Paste the JavaScript code here const startPage = "garden gates"; const folderToCheck = "2 Areas/digital garden"; // Or "" for the whole vault const reachable = new Set(); const toVisit = new Set([dv.page(startPage).file.path]); while (toVisit.size > 0) { const currentPagePath = toVisit.values().next().value; toVisit.delete(currentPagePath); reachable.add(currentPagePath); const linkedPages = dv.page(currentPagePath).file.outlinks || []; linkedPages.forEach(link => { const linkedPagePath = link.path; if (!reachable.has(linkedPagePath)) { toVisit.add(linkedPagePath); } }); } const allFilesInFolder = dv.pages(`"${folderToCheck}"`).map(p => p.file.path); const unreachable = allFilesInFolder.filter(path => !reachable.has(path)); dv.header(3, "Potentially Unreachable Files (from [[starting points]])"); if (unreachable.length > 0) { dv.list(unreachable.map(path => dv.fileLink(path))); } else { dv.paragraph("All files in the specified scope are reachable."); } ```