import os
import shutil
import sys
from tqdm import tqdm
def copyfile(src_dir, dst_dir):
if not os.path.exists(dst_dir):
os.makedirs(dst_dir)
if os.path.exists(src_dir):
for root, dirs, files in os.walk(src_dir):
for file in tqdm(files):
src_file = os.path.join(root, file)
shutil.copy(src_file, dst_dir)
shutil.rmtree(src_dir)
copyfile(sys.argv[1], sys.argv[2])