Karthikeyen92 commited on
Commit
a04e896
·
verified ·
1 Parent(s): d4a9e0f

Update py/db_storage.py

Browse files
Files changed (1) hide show
  1. py/db_storage.py +2 -1
py/db_storage.py CHANGED
@@ -158,7 +158,8 @@ class DBStorage:
158
 
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
  print(f'Deleted {PATH}')
163
 
164
  def clear_db():
 
158
 
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, path, exc: os.chmod(path, 0o777))
163
  print(f'Deleted {PATH}')
164
 
165
  def clear_db():