diff --git a/dist/smartfile.fs.js b/dist/smartfile.fs.js index 1405d33..7035264 100644 --- a/dist/smartfile.fs.js +++ b/dist/smartfile.fs.js @@ -218,7 +218,7 @@ exports.fileTreeToObject = (dirPathArg, miniMatchFilter) => __awaiter(this, void return plugins.path.join(dirPath, filePath); } else { - return readPath; + return filePath; } })(); let fileContentString = exports.toStringSync(readPath); diff --git a/ts/smartfile.fs.ts b/ts/smartfile.fs.ts index cde7442..52ef4df 100644 --- a/ts/smartfile.fs.ts +++ b/ts/smartfile.fs.ts @@ -228,7 +228,7 @@ export let fileTreeToObject = async (dirPathArg: string, miniMatchFilter: string if (!plugins.path.isAbsolute(filePath)) { return plugins.path.join(dirPath, filePath) } else { - return readPath + return filePath } })() let fileContentString = toStringSync(readPath)