From 13bd3e4703b705475cad1037ca0e7aae52450b85 Mon Sep 17 00:00:00 2001 From: phixxy Date: Thu, 5 Mar 2026 00:44:24 -0800 Subject: [PATCH] fixed path concat in delete_files --- skratch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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):