Skip to content

Commit

Permalink
bugfix filesystem creation flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas FitzRoy-Dale committed Oct 18, 2023
1 parent 501f828 commit fdbccdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rime/filesystem/fslibfilesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def create_file(self, path):
return self._fs.open(path, 'wb')

def sqlite3_connect(self, path, read_only=True):
log.debug(f"Connecting to {path}")
return sqlite3_connect_with_regex_support(self._fs.getsyspath(path), read_only=read_only)

def sqlite3_create(self, path):
syspath = self._fs.getsyspath(path)

ensuredir(syspath)
return sqlite3_connect_with_regex_support(syspath)

return sqlite3_connect_with_regex_support(syspath, read_only=False)

0 comments on commit fdbccdc

Please sign in to comment.