Added docs and typing in function declarations

This commit is contained in:
HallowedDust5 committed 2022-06-21 22:58:33 -04:00
1 parent b38184bc32
commit 07466097a3
6 files changed
+68 -15

No files matched your search

+5
View File
@@ -3,6 +3,11 @@ from os.path import exists
def cleanup() -> int:
"""Deletes all temporary assets in assets/temp
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()]