fs robustness patch #1

Merged
eternal-flame-AD merged 4 commits from fs-patch into main 2024-07-24 19:05:28 +00:00
Showing only changes of commit e4026cf022 - Show all commits

View File

@ -8,8 +8,6 @@ export function safePath(pathIn: string, options: { base: string, noSubDir?: boo
pathIn = path.join(base, pathIn);
const normBase = path.normalize(base);
const normPath = path.normalize(pathIn);
console.log(normBase);
console.log(normPath);
if (normPath !== normBase && normPath.startsWith(normBase)) {
if (options.noSubDir) {