[issue1076515] shutil.move clobbers read-only files.

2013-03-10 Thread Brett Cannon
Brett Cannon added the comment: Closing since everyone seems to agree that the current behaviour is fine and Tarek has not said anything since being assigned the bug. -- nosy: +brett.cannon resolution: - rejected status: open - closed ___ Python

[issue1076515] shutil.move clobbers read-only files.

2013-03-10 Thread R. David Murray
R. David Murray added the comment: Since I spent some time thinking about this, I want to leave some notes: The linux 'mv' command issues the following prompt: mv t2/myfile t1 mv: try to overwrite ‘t1/myfile’, overriding mode (-)? So modern linux, at least, will not

[issue1076515] shutil.move clobbers read-only files.

2012-07-09 Thread Greg Roodt
Greg Roodt gro...@gmail.com added the comment: I can add some more info to the docs if anybody feels they are required, but I think they are sufficient. It already mentions that it copies file contents and that the correct permissions are required. This is mentioned in the docs for

[issue1076515] shutil.move clobbers read-only files.

2012-07-07 Thread Greg Roodt
Greg Roodt gro...@gmail.com added the comment: I believe this can be closed. shutil.copyfile attempts to copy file contents from src to dst, so it makes sense for this to fail if dst is read-only. shutil.move replaces the dst, which is permitted based on directory permissions. --

[issue1076515] shutil.move clobbers read-only files.

2012-07-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Would a doc clarification be useful? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1076515 ___

[issue1076515] shutil.move clobbers read-only files.

2010-09-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: unit test needed - type: behavior - feature request versions: -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1076515

[issue1076515] shutil.move clobbers read-only files.

2010-09-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: No reply to msg114985. -- resolution: - invalid status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1076515 ___

[issue1076515] shutil.move clobbers read-only files.

2010-09-12 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I haven't had time to investigate but it shouldn't be closed just yet. Someone will get to it. -- resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org

[issue1076515] shutil.move clobbers read-only files.

2010-08-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Brian, Tim, any comments on this wrt Windows or do you think this can be closed? Could there be an impact on any other OS? I'll close if there's no response, unless someone else feels fit to close this anyway. -- nosy:

[issue1076515] shutil.move clobbers read-only files.

2010-08-08 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: Here's a quick test: Python 3.2a1+ (py3k:83811, Aug 8 2010, 09:00:22) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] on linux2 Type help, copyright, credits or license for more information. import os, shutil open('a', 'w').write('a') 1 open('b',

[issue1076515] shutil.move clobbers read-only files.

2010-06-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Is this bug still relevant? -- assignee: - tarek nosy: +merwok, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1076515 ___

[issue1076515] shutil.move clobbers read-only files.

2009-04-21 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1076515 ___ ___ Python-bugs-list

[issue1076515] shutil.move clobbers read-only files.

2009-03-30 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- dependencies: +shutil.copyfile fails when dst exists read-only stage: - test needed type: - behavior versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1076515