Oddity is shutil.copyfileobj

N

Neil Benn

Hello,

I'm running a program which is using shutil.copyfileobj on a
Win2K Pro, python 2.3 box. The source and dest file are both opened in
textual mode as 'w', the source file on the local hard drive and the
dest file is on a file server (transmitted through a samba server), the
block size for copying is not entered - so the default setting is used
(whatever that is).

The files are copied across perfectly (diffing them shows they are
identical), however I have one small problem, the destination filename
has .read appended to the end. I've checked my code again and again and
I'm definatly not apeending this.

I'm also copying files across, in the same program but the source
and dest are binary - this doesn't have the same problem, the filenames
are not changed.

My question is - has anyone else seen this behaviour?

Cheers,

Neil

--

Neil Benn
Senior Automation Engineer
Cenix BioScience
BioInnovations Zentrum
Tatzberg 47
D-01307
Dresden
Germany

Tel : +49 (0)351 4173 154
e-mail : (e-mail address removed)
Cenix Website : http://www.cenix-bioscience.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ConfigParser Keys 1
Plone FAQ 1
__eq__ on a dict 9
Python Twain 0
UML Tools 1
How to close a process in win32 0
CGI, FieldStorage and Filename 0
Logging 0

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top