From 64219f8f099535473aeb475c5a50a366abf81e1f Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 2 Aug 2017 13:16:07 +0200 Subject: [PATCH] fix readPath is not defined --- dist/smartfile.fs.js | 2 +- ts/smartfile.fs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)