Skip to content

Commit

Permalink
Fix FsStorage plugin directory guard
Browse files Browse the repository at this point in the history
  • Loading branch information
belemaire committed Jun 14, 2021
1 parent ab47268 commit 5bb94be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/livebundle-storage-fs/src/FsStoragePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class FsStoragePlugin implements StoragePlugin {
this.storageDir = fsConfig.storageDir
? untildifyPath(fsConfig.storageDir)
: tmp.dirSync({ unsafeCleanup: true }).name;
fs.ensureDir(this.storageDir);
fs.ensureDirSync(this.storageDir);
}

hasFile(filePath: string): Promise<boolean> {
Expand Down

0 comments on commit 5bb94be

Please sign in to comment.