import os, shutil
path = "C:\\Users\\mypath"
moveto = "C:\\Users\\mypath1"# Moving to this folder after upload
files = os.listdir(path)
files.sort()
for f in files:
src = path+f
dst = moveto+f
shutil.move(src,dst)
import os, shutil
path = "C:\\Users\\mypath"
moveToPaths = ["C:\\Users\\mypath1", "C:\\Users\\mypath2"] # Moving to this folder after upload
files = os.listdir(path)
files.sort()
for f in files:
src = path+f
for moveToPath in moveToPaths:
dst = moveToPath+f
shutil.copy(src,dst)
shutil.rmtree(path)