[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-08-16 Thread Catherine Devlin
Catherine Devlin added the comment: Attaching new patch incorporating Vajrasky's suggestion -- Added file: http://bugs.python.org/file31316/test1666318.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1666318

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-08-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset c388e93879c4 by Antoine Pitrou in branch '3.3': Issue #1666318: Add a test that shutil.copytree() retains directory permissions. http://hg.python.org/cpython/rev/c388e93879c4 New changeset 8906713d5704 by Antoine Pitrou in branch 'default': Issue

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-08-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed to 3.3 and 3.4. Thank you very much! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-08-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hey Catherine, Do you want to update your patch to include Vajrasky's suggestion? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1666318 ___

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-07-31 Thread Catherine Devlin
Catherine Devlin added the comment: Thanks, Antoine - I've signed and submitted the Contributor's Agreement. -- Added file: http://bugs.python.org/file31104/Python Contributor Agreement Form - signed.pdf ___ Python tracker rep...@bugs.python.org

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-07-31 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: Removed file: http://bugs.python.org/file31104/Python Contributor Agreement Form - signed.pdf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1666318 ___

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-07-31 Thread Christian Heimes
Christian Heimes added the comment: Hi Catherine, the contributor agreement must go through proper channels. The bug tracker is not the right place to post your agreement. Please follow the instructions at http://www.python.org/psf/contrib/ . You can submit the agreement electronically, too.

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-07-31 Thread Vajrasky Kok
Vajrasky Kok added the comment: Hi Catherine, I saw your patch. It looks good, except you are trying to copy the directory onto its subdirectory. src_dir = tempfile.mkdtemp() dst_dir = os.path.join(tempfile.mkdtemp(), 'destination') I prefer it if you copy it to somewhere else. This would be

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-07-29 Thread Catherine Devlin
Catherine Devlin added the comment: Attaching a test that verifies that shutil.copytree is, in fact, preserving permissions (as of Python 3.4.0a0 (default:66a3dc613627, Jul 27 2013, 21:23:10) ) As far as I can tell this can be closed. -- nosy: +catherinedevlin Added file:

[issue1666318] shutil.copytree doesn't give control over directory permissions

2013-07-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Catherine, I think it would be nice to apply your patch to avoid any further regressions. However, you should first sign a contributor's agreement (http://www.python.org/psf/contrib/). Could you please do so and post here once it is done? --

[issue1666318] shutil.copytree doesn't give control over directory permissions

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: I made the change suggested in the last comment, patch is attached. Trying to clean up any bugs I've got my name on! -- keywords: +patch Added file: http://bugs.python.org/file24816/makedirs_function.patch

[issue1666318] shutil.copytree doesn't give control over directory permissions

2012-03-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch looks good. I don’t know if I should fix this in 3.3 with your patch or go back to the first idea of adding a copystat(src, dst) after the mkdir call. I just don’t know if it’s important that this behavior does not change in stable

[issue1666318] shutil.copytree doesn't give control over directory permissions

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Ah, understood. I kind of like the idea of having the added functionality behind a custom callable, but if it's generally just a bug then copystat is a good solution, too. -- ___ Python tracker

[issue1666318] shutil.copytree doesn't give control over directory permissions

2011-08-24 Thread Ugra Dániel
Changes by Ugra Dániel daniel.u...@gmail.com: -- nosy: +daniel.ugra ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1666318 ___ ___ Python-bugs-list

[issue1666318] shutil.copytree doesn't give control over directory permissions

2011-08-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The result should be uniform; either preserve permissions across the board, or leave it to the mercy of the caller. I’m surprised by this report, as the code does a copystat(sourcedir, targetdir) since 2004 (#1048878). Anyhow, I think the