DB config

This commit is contained in:
Manuel Weiser 2024-05-11 10:59:22 +02:00
parent ad64373417
commit ac9be15270

View File

@ -129,10 +129,10 @@ def writeDB():
def deleteFiles(filename):
try:
file = filename[:-4]
#print(file)
os.unlink(path+file+".*")
print("lösche", file)
for fname in os.listdir(path):
if fname.startswith(filename[:-4]):
os.remove(os.path.join(path, fname))
print("lösche", fname)
except Exception as e:
print('Failed to delete %s. Reason: %s' % (path+filename, e))