fix readPath is not defined
This commit is contained in:
parent
42c6c1eec5
commit
64219f8f09
2
dist/smartfile.fs.js
vendored
2
dist/smartfile.fs.js
vendored
@ -218,7 +218,7 @@ exports.fileTreeToObject = (dirPathArg, miniMatchFilter) => __awaiter(this, void
|
|||||||
return plugins.path.join(dirPath, filePath);
|
return plugins.path.join(dirPath, filePath);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return readPath;
|
return filePath;
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
let fileContentString = exports.toStringSync(readPath);
|
let fileContentString = exports.toStringSync(readPath);
|
||||||
|
@ -228,7 +228,7 @@ export let fileTreeToObject = async (dirPathArg: string, miniMatchFilter: string
|
|||||||
if (!plugins.path.isAbsolute(filePath)) {
|
if (!plugins.path.isAbsolute(filePath)) {
|
||||||
return plugins.path.join(dirPath, filePath)
|
return plugins.path.join(dirPath, filePath)
|
||||||
} else {
|
} else {
|
||||||
return readPath
|
return filePath
|
||||||
}
|
}
|
||||||
})()
|
})()
|
||||||
let fileContentString = toStringSync(readPath)
|
let fileContentString = toStringSync(readPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user