forked from kate/uniborg
Actually write the method name to mkdir on storage
This commit is contained in:
parent
d5f70423a3
commit
5438f95f34
|
@ -48,6 +48,6 @@ class Storage:
|
||||||
|
|
||||||
def _save(self):
|
def _save(self):
|
||||||
if not self._root.is_dir():
|
if not self._root.is_dir():
|
||||||
self._root(parents=True, exist_ok=True)
|
self._root.mkdir(parents=True, exist_ok=True)
|
||||||
with open(self._root / FILE_NAME, 'w') as fp:
|
with open(self._root / FILE_NAME, 'w') as fp:
|
||||||
json.dump(self._data, fp)
|
json.dump(self._data, fp)
|
||||||
|
|
Loading…
Reference in New Issue