return consistent types from list_all()
This commit is contained in:
parent
d49ba30b35
commit
f1d6303602
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ def delete_all(d):
|
|||
def list_all(d):
|
||||
if not os.path.exists(d):
|
||||
print("Skratch path doesn't exist")
|
||||
return 0
|
||||
return []
|
||||
files = os.listdir(d)
|
||||
if files == []:
|
||||
print("No skratch files exist")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue