create Metadata folder
This commit is contained in:
parent
74e89693ff
commit
ee52791a56
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ class Icons(dict):
|
|||
|
||||
def is_available(self):
|
||||
folder = os.path.dirname(self._db)
|
||||
if os.path.exists(folder):
|
||||
base = os.path.dirname(os.path.dirname(folder))
|
||||
if os.path.exists(base):
|
||||
if not os.path.exists(folder):
|
||||
ox.makedirs(folder)
|
||||
if not os.path.exists(self._db):
|
||||
self.create()
|
||||
return os.path.exists(self._db)
|
||||
|
|
Loading…
Reference in a new issue