mirror of
https://github.com/rakuri255/UltraSinger.git
synced 2026-12-02 01:48:10 +09:00
remove cache folder after run
This commit is contained in:
1 parent
fe27fa344e
commit
c062063258
5 files changed
+21
-4
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user