Hi all,
I have to write an application which does a move and copy of a
file from a remote machine to the local machine. I tried something
like:
file = ur"\\\\venuwin2008\\C\\4Folders\\Folder02\\Folder002\
\TextFile_06.txt"
dest = "C:\\test"
shutil.copy(file,dest)
But it is throwing an error:
Traceback (most recent call last):
File "E:\venu\Testing Team\test.py", line 22, in <module>
shutil.copy(file,dest)
File "C:\Python26\lib\shutil.py", line 88, in copy
copyfile(src, dst)
File "C:\Python26\lib\shutil.py", line 52, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 22] invalid mode ('rb') or filename: u'\\\\\\\
\venuwin2008\\\\C\\\\4Folders\\\\Folder02\\\\Folder002\\\
\TextFile_06.txt'
Can some one please help me in this regard.
Thank you
Venu madhav