我正在尝试从一个位置复制到另一个位置,如下所示并遇到以下错误,任何人都可以提供有关如何克服此问题的输入吗?
import argparse
import shutil, errno
def copystuff(src, dst):
try:
shutil.copytree(src, dst)
except OSError as exc: # python >2.5
if exc.errno == errno.ENOTDIR:
shutil.copy(src, dst)
else: raise
def main ():
source= "\\Terminal\workspace\username\nfc\AU_LINUX_ANDROID_JB_3.2_RB2.04.03.00.129.005"
destination= "\\fosters\loc\LA\Build"
copy_list=['\out\target\product\msm8226\obj\KERNEL_OBJ\vmlinux']
for item in copy_list:
src = source + item
dest = destination + item
copystuff(src,dest)
if __name__ == '__main__':
错误:-
WindowsError: [Error 3] The system cannot find the path specified: '\\Terminal\workspace\username\nfc\AU_LINUX_ANDROID_JB_3.2_RB2.04.03.00.129.005\out\\target\\product\\msm8226\\obj\\KERNEL_OBJ\\vmlinux/*.*'