Skip to content

Commit 191e0ce

Browse files
committed
Don't create directory
1 parent 89fb0e0 commit 191e0ce

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/node/src/db/BetterSQLite3DBAdapter.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ export class BetterSQLite3DBAdapter extends BaseObserver<DBAdapterListener> impl
6767
throw new Error(`The dbLocation directory at "${this.options.dbLocation}" does not exist. Please create it before opening the PowerSync database!`);
6868
}
6969

70-
// SQLite reports a misuse error when the target directory of the database doesn't exist,
71-
// so create it now before we access the database.
72-
await fs.mkdir(this.options.dbLocation, { recursive: true });
73-
7470
dbFilePath = path.join(this.options.dbLocation, dbFilePath);
7571
}
7672

0 commit comments

Comments
 (0)