|
|
|
@ -44,7 +44,14 @@ def buttonclick(): |
|
|
|
if not os.path.isfile(target_folder + file): |
|
|
|
if file.endswith('.mp4'): |
|
|
|
os.rename(path + '//' + file, target_folder + file) |
|
|
|
|
|
|
|
|
|
|
|
# CLEAN UP EMPTY FOLDERS |
|
|
|
base_path = "" |
|
|
|
dir_list = glob.iglob(os.path.join(base_path, "channel_package*")) |
|
|
|
for path in dir_list: |
|
|
|
if os.path.isdir(path): |
|
|
|
shutil.rmtree(path) |
|
|
|
|
|
|
|
# SET PROGRESS BAR TO 100% TEMPORARY |
|
|
|
progressBar.set(100) |
|
|
|
print("Done!") |
|
|
|
|