Browse Source

Update 'start.py'

master
Joshua Pickard 3 years ago
parent
commit
8875646fae
  1. 9
      start.py

9
start.py

@ -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!")

Loading…
Cancel
Save