create Metadata folder

This commit is contained in:
j 2019-01-30 16:35:44 +05:30
parent 74e89693ff
commit ee52791a56

View file

@ -30,7 +30,10 @@ class Icons(dict):
def is_available(self): def is_available(self):
folder = os.path.dirname(self._db) 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): if not os.path.exists(self._db):
self.create() self.create()
return os.path.exists(self._db) return os.path.exists(self._db)