remove cache folder after run

This commit is contained in:
Vadim committed 2024-06-09 12:15:39 +02:00
1 parent fe27fa344e
commit c062063258
5 files changed
+21 -4

No files matched your search

+5
View File
@@ -47,3 +47,8 @@ def check_file_exists(file_path: str) -> bool:
def check_if_folder_exists(song_output: str) -> bool:
"""Checks if a folder exists."""
return os.path.isdir(song_output)
def remove_folder(cache_path):
"""Removes a folder."""
shutil.rmtree(cache_path)