A very simple task, but fails to perform. You need to copy folder1 to the directory D: \ savorsk \
import shutil src = "D:\\Project\\2014\\archdata\\folder1" dst_sav = "D:\\savorsk\\" shutil.copytree(src, dst_sav)
The specified code leads to an error. I read the documentation very thoughtfully, but I really don't catch up with what is wrong in the code.
D:\123>1.py Traceback (most recent call last): File "D:\123\1.py", line 5, in <module> shutil.copytree(src, dst_sav) File "C:\Python27\ArcGIS10.2\lib\shutil.py", line 175, in copytree os.makedirs(dst) File "C:\Python27\ArcGIS10.2\lib\os.py", line 157, in makedirs mkdir(name, mode) WindowsError: [Error 183] โั
ัััััััั ัััััะโ ะััั,: 'D:\\savorsk'