DB config
This commit is contained in:
parent
ad64373417
commit
ac9be15270
@ -129,10 +129,10 @@ def writeDB():
|
|||||||
|
|
||||||
def deleteFiles(filename):
|
def deleteFiles(filename):
|
||||||
try:
|
try:
|
||||||
file = filename[:-4]
|
for fname in os.listdir(path):
|
||||||
#print(file)
|
if fname.startswith(filename[:-4]):
|
||||||
os.unlink(path+file+".*")
|
os.remove(os.path.join(path, fname))
|
||||||
print("lösche", file)
|
print("lösche", fname)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('Failed to delete %s. Reason: %s' % (path+filename, e))
|
print('Failed to delete %s. Reason: %s' % (path+filename, e))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user