-l now states if .skratch is empty

This commit is contained in:
phixxy 2026-03-05 00:52:46 -08:00
parent 94e42cfe65
commit 5673fe0337

View file

@ -12,7 +12,7 @@ def make_dir(d):
def delete_all(d):
if not os.path.exists(d):
print("Nothing to delete")
print("Skratch path doesn't exist")
else:
list_all(d)
x = input("Delete the above files? y/N ")
@ -25,7 +25,9 @@ def delete_all(d):
def list_all(d):
if not os.path.exists(d):
print("Nothing to list")
print("Skratch path doesn't exist")
elif os.listdir(d) == []:
print("No skratch files exist")
else:
for file in os.listdir(d):
print(file)