Merge branch 'master' into 'master'

fix smartfile.fs.fileTreeToObject

See merge request !1
This commit is contained in:
Phil Kunz 2017-03-15 19:44:42 +00:00
commit 2ba39cf2ac
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) { for (let filePath of fileTree) {
smartfileArray.push(new Smartfile({ smartfileArray.push(new Smartfile({
path: filePath, path: filePath,
contentBuffer: new Buffer(toStringSync(filePath)) contentBuffer: new Buffer(toStringSync(
plugins.path.join(dirPathArg, filePath)
))
})) }))
} }
return smartfileArray return smartfileArray