From e501c1b46b401d6e13304c79314f66e433a796a9 Mon Sep 17 00:00:00 2001 From: Anjok07 <68268275+Anjok07@users.noreply.github.com> Date: Sun, 18 Dec 2022 21:22:59 -0600 Subject: [PATCH] Delete old_data_check.py --- old_data_check.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 old_data_check.py diff --git a/old_data_check.py b/old_data_check.py deleted file mode 100644 index 8c69cb2..0000000 --- a/old_data_check.py +++ /dev/null @@ -1,27 +0,0 @@ -import os -import shutil - -def file_check(original_dir, new_dir): - - if os.path.isdir(original_dir): - for file in os.listdir(original_dir): - shutil.move(os.path.join(original_dir, file), os.path.join(new_dir, file)) - - if len(os.listdir(original_dir)) == 0: - shutil.rmtree(original_dir) - -def remove_unneeded_yamls(demucs_dir): - - for file in os.listdir(demucs_dir): - if file.endswith('.yaml'): - if os.path.isfile(os.path.join(demucs_dir, file)): - os.remove(os.path.join(demucs_dir, file)) - -def remove_temps(remove_dir): - - if os.path.isdir(remove_dir): - try: - shutil.rmtree(remove_dir) - except Exception as e: - print(e) - \ No newline at end of file