This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const path = require('path') | |
// Configuration | |
const startDir = process.argv[2] || '/' // Use command line argument or default to root | |
let deletedCount = 0 | |
let scannedCount = 0 | |
console.log(`Starting to scan from ${startDir}`) |