I am trying to copy files from hard disk to a network path drive using python script. MY script is simple however it doesnt work since it seems that I need to add credentials in order to perftorm such action.
import glob, os
import shutil

myPath = "E://data//"
dst = "C://Users//user//networkPath//"
for file in os.listdir(myPath):

shutil.copy2(myPath+file, dst+file)
This works only for default system directories and not for a network path. What should I do in case of network path?

View Solution