fixed path concat in delete_files
This commit is contained in:
parent
3cdd882b45
commit
13bd3e4703
1 changed files with 3 additions and 2 deletions
|
|
@ -15,8 +15,9 @@ def delete_all(d):
|
||||||
print("Nothing to delete")
|
print("Nothing to delete")
|
||||||
else:
|
else:
|
||||||
for file in os.listdir(d):
|
for file in os.listdir(d):
|
||||||
os.remove(d+file)
|
f = os.path.join(d,file)
|
||||||
print(f"removing: {d+file}")
|
os.remove(f)
|
||||||
|
print(f"removing: {f}")
|
||||||
print("Done")
|
print("Done")
|
||||||
|
|
||||||
def list_all(d):
|
def list_all(d):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue