[Python-bugs-list] [ python-Bugs-810879 ] shutil.copyfile fails when dst exists read-only

SourceForge.net noreply at sourceforge.net
Mon Sep 22 19:21:14 EDT 2003


Bugs item #810879, was opened at 2003-09-22 19:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=810879&group_id=5470

Category: Windows
Group: Python 2.2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Ray Pasco (pascor)
Assigned to: Tim Peters (tim_one)
Summary: shutil.copyfile fails when dst exists read-only

Initial Comment:
(WIN32):  shutil.copyfile fails when the dst file already 

exists, but in read-only mode.  As the old file is

about to be

clobbered, a fix I've been using is to delete the

orginal file

first.   The attached my be inelegant, but works fine







----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=810879&group_id=5470



More information about the Python-bugs-list mailing list