Formatted with python-black
This commit is contained in:
1 parent
dba11ea1e3
commit
69f4f59bb6
11 files changed
+95
-59
No files matched your search
+4
-2
@@ -7,10 +7,12 @@ def cleanup() -> int:
|
||||
|
||||
Returns:
|
||||
int: How many files were deleted
|
||||
"""
|
||||
"""
|
||||
if exists("./assets/temp"):
|
||||
count = 0
|
||||
files = [f for f in os.listdir(".") if f.endswith(".mp4") and "temp" in f.lower()]
|
||||
files = [
|
||||
f for f in os.listdir(".") if f.endswith(".mp4") and "temp" in f.lower()
|
||||
]
|
||||
count += len(files)
|
||||
for f in files:
|
||||
os.remove(f)
|
||||
|
||||
Reference in new issue
Block a user