fix: FileTree directory writing
This commit is contained in:
parent
d2fc7b30df
commit
3a8bc213d7
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user