修复深度处理时的目录判断

This commit is contained in:
kura 2025-07-01 11:34:46 +08:00
parent 44ec8195f7
commit 263865195b

View File

@ -73,7 +73,7 @@ function processDirectory(inputDir, outputDir, options, currentDepth = 0) {
.filter(entry => entry.isDirectory())
.map(entry => {
const newInputPath = join(inputDir, entry.name);
if (resolve(newInputPath) === resolve(options.output)) {
if ((newInputPath) === (options.output)) {
return Promise.resolve();
}
const newOutputPath = join(outputDir, entry.name);