Skip to content

Commit

Permalink
Merge pull request #119 from electrode-io/fix-fs-storage
Browse files Browse the repository at this point in the history
Fix FsStorage plugin directory guard
  • Loading branch information
belemaire authored Jun 14, 2021
2 parents ab47268 + 5bb94be commit 662f91d
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 662f91d

Please sign in to comment.