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
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
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
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.
--
É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
___
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
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
___
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
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:
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',
É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
___
Changes by Daniel Diniz aja...@gmail.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1076515
___
___
Python-bugs-list
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
13 matches
Mail list logo