fix(core): update

This commit is contained in:
2023-11-13 20:00:28 +01:00
parent 1113020e17
commit 75be95fe45
6 changed files with 30 additions and 16 deletions

View File

@@ -81,7 +81,7 @@ export class SmartArchive {
objectMode: true,
writeFunction: async (chunkArg: plugins.smartfile.StreamFile, streamtools) => {
const done = plugins.smartpromise.defer<void>();
console.log(chunkArg.relativeFilePath);
console.log(chunkArg.relativeFilePath ? chunkArg.relativeFilePath : 'no relative path');
const streamFile = chunkArg;
const readStream = await streamFile.createReadStream();
await plugins.smartfile.fs.ensureDir(targetDir);