This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients
Date 2004-02-16.23:52:47
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=31435

Andrew, what does this do on Unix?  I don't *want* copyfile() 
to clobber read-only files, so I view this report as a small lack 
in the docs (which unconditionally say dst will be replaced).  
If the user lacks sufficient write permissions on Unix (a decent 
approximation to Windows "read only" state), does copyfile() 
succeed anyway?  I sure hope not.  On Windows,

    fdst = open(dst, 'wb')

dies with a (thoroughly appropriate, according to me)

    IOError: [Errno 13] Permission denied: <dst_value>

when dst is read-only.
History
Date User Action Args
2007-08-23 14:17:00adminlinkissue810879 messages
2007-08-23 14:17:00admincreate