Closed j9t closed 1 month ago
Observed some errors when checking entire user directory. (Early AI-generated solution attached.)
Wide scans may lead to many warning messages. These would be useful to make opt-in or opt-out. (Probably opt-in, as with a -v flag.)
-v
After function walkDirectory(directory) {:
function walkDirectory(directory) {
const MAX_PATH_LENGTH = 255; // Adjust this value based on your OS limits
After const fullPath = path.join(directory, file);:
const fullPath = path.join(directory, file);
if (fullPath.length > MAX_PATH_LENGTH) { console.warn(`Skipping file or directory with path too long: ${fullPath}`); return; } try { const stats = fs.lstatSync(fullPath); if (stats.isSymbolicLink()) { console.warn(`Skipping symbolic link: ${fullPath}`); return; } // … }
Prepared PR #6.
After rolling back (superfluous) test change, merged #6.
Observed some errors when checking entire user directory. (Early AI-generated solution attached.)
Wide scans may lead to many warning messages. These would be useful to make opt-in or opt-out. (Probably opt-in, as with a
-v
flag.)After
function walkDirectory(directory) {
:After
const fullPath = path.join(directory, file);
: