diff --git a/skratch.py b/skratch.py index 5011449..329fccb 100755 --- a/skratch.py +++ b/skratch.py @@ -15,8 +15,9 @@ def delete_all(d): print("Nothing to delete") else: for file in os.listdir(d): - os.remove(d+file) - print(f"removing: {d+file}") + f = os.path.join(d,file) + os.remove(f) + print(f"removing: {f}") print("Done") def list_all(d):