fix(core): update

This commit is contained in:
2023-08-31 18:45:23 +02:00
parent 279db74568
commit ee97e1d88b
6 changed files with 1457 additions and 465 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartfile',
version: '10.0.30',
version: '10.0.31',
description: 'offers smart ways to work with files in nodejs'
}

View File

@ -255,12 +255,12 @@ export const fileTreeToObject = async (dirPathArg: string, miniMatchFilter: stri
return filePath;
}
})();
const fileContentString = toStringSync(readPath);
const fileBuffer = plugins.fs.readFileSync(readPath);
// push a read file as Smartfile
smartfileArray.push(
new Smartfile({
contentBuffer: Buffer.from(fileContentString),
contentBuffer: fileBuffer,
base: dirPath,
path: filePath,
})