Skip to content
Snippets Groups Projects
Commit efe2608e authored by Diana Gudu's avatar Diana Gudu
Browse files

create folder hierarchy for pending db

parent d932a97b
No related branches found
No related tags found
No related merge requests found
Pipeline #321665 passed
......@@ -200,7 +200,7 @@ sqlite3.register_converter("boolean", lambda v: bool(int(v)))
class SQLiteConnector:
def __init__(self, location: str) -> None:
self.location = location
Path(self.location).parent.mkdir(exist_ok=True)
Path(self.location).parent.mkdir(mode=0o700, parents=True, exist_ok=True)
def exists(self) -> bool:
return Path(self.location).exists()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment