修复深度处理时的目录判断
This commit is contained in:
parent
44ec8195f7
commit
263865195b
2
index.js
2
index.js
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user