import os,shutil import time src_path='F:/oanda/' target_path='D:/oanda/' while True: time.sleep(3) file_list=os.listdir(src_path) if len(file_list)>0: for file in file_list: shutil.move(src_path+file,target_path+file)
import os,shutil import time src_path='F:/oanda/' target_path='D:/oanda/' while True: time.sleep(3) file_list=os.listdir(src_path) if len(file_list)>0: for file in file_list: shutil.move(src_path+file,target_path+file)