from utils.fileio import * import os import shutil CUR_PATH = os.path.dirname(__file__) # path1 = "data/purposeSplit.bk" # files1 = walk_files("data/purposeSplit.bk") # files2 = walk_files("data/purposeSplit3") # print(files1[:100]) # print(files2[:100]) # for file2 in files2: # file22 = file2.replace("purposeSplit3", "purposeSplit.bk") # if file22 in files1: # os.remove(file22) # shutil.move(file2, file22) file_list = "data/purposeSplit.bk" for directory in os.listdir(file_list): directory2 = file_list + "/" + directory print(directory, len(walk_files(directory2)))