-l now states if .skratch is empty
This commit is contained in:
parent
94e42cfe65
commit
5673fe0337
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue