Problem while copying a file from a remote filer
grahn+nntp at snipabacken.se
Tue Mar 17 13:01:44 CET 2009
On Sun, 15 Mar 2009 22:47:54 -0700, Chris Rebert <clp2 at rebertia.com> wrote:
> On Sun, Mar 15, 2009 at 10:24 PM, venutaurus539 at gmail.com
> <venutaurus539 at gmail.com> wrote:
>> 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
>> file = ur"\\\\venuwin2008\\C\\4Folders\\Folder02\\Folder002\
> The 'r' prefix on the string makes it a raw string, meaning you don't
> have do double-up the backslashes, but you did so anyway, so your path
> has many extra backslashes, making it invalid. Dropping the 'r' prefix
> should fix the problem.
Also, the file isn't really remote if you can use the normal local
file system calls to read it.
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.se> R'lyeh wgah'nagl fhtagn!
More information about the Python-list