DB config
This commit is contained in:
parent
ad64373417
commit
ac9be15270
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user