fix: FileTree directory writing

This commit is contained in:
cha0s 2022-03-09 17:18:27 -06:00
parent d2fc7b30df
commit 3a8bc213d7

View File

@ -56,7 +56,7 @@ export default class FileTree {
Object.entries(this.files) Object.entries(this.files)
.map(async ([path, stream]) => { .map(async ([path, stream]) => {
if (null === stream) { if (null === stream) {
return mkdir(path, {recursive: true}); return mkdir(join(destination, path), {recursive: true});
} }
await mkdir(dirname(join(destination, path)), {recursive: true}); await mkdir(dirname(join(destination, path)), {recursive: true});
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {