408c408 < dest = os.path.join(base_dir, file) --- > dest = os.path.join(base_dir, os.path.basename(file))