Update py/db_storage.py
Browse files- py/db_storage.py +1 -1
py/db_storage.py
CHANGED
@@ -159,7 +159,7 @@ class DBStorage:
|
|
159 |
def check_and_delete(PATH):
|
160 |
if os.path.isdir(PATH):
|
161 |
# shutil.rmtree(PATH, onexc=lambda func, path, exc: os.chmod(path, 0o777))
|
162 |
-
shutil.rmtree(PATH
|
163 |
print(f'Deleted {PATH}')
|
164 |
|
165 |
def clear_db():
|
|
|
159 |
def check_and_delete(PATH):
|
160 |
if os.path.isdir(PATH):
|
161 |
# shutil.rmtree(PATH, onexc=lambda func, path, exc: os.chmod(path, 0o777))
|
162 |
+
shutil.rmtree(PATH)
|
163 |
print(f'Deleted {PATH}')
|
164 |
|
165 |
def clear_db():
|