fix smartfile.fs.fileTreeToObject

This commit is contained in:
Philipp Kunz 2017-03-15 15:25:41 +01:00
parent dda4c1af07
commit 675934d049
2 changed files with 5 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -214,7 +214,9 @@ export let fileTreeToObject = async (dirPathArg: string, miniMatchFilter: string
for (let filePath of fileTree) {
smartfileArray.push(new Smartfile({
path: filePath,
contentBuffer: new Buffer(toStringSync(filePath))
contentBuffer: new Buffer(toStringSync(
plugins.path.join(dirPathArg, filePath)
))
}))
}
return smartfileArray