Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [2.7] bpo-34260, shutil: fix copy2 and copystat documentation (GH-8523) ↵ | Zsolt Cserna | 2018-10-24 | 1 | -2/+11 |
| | | | | | | | | | | | | | | (GH-10071) Fix the documentation of copy2, as it does not copy file ownership (user and group), only mode, mtime, atime and flags. The original text was confusing to developers as it suggested that this command is the same as 'cp -p', but according to cp(1), '-p' copies file ownership as well. Clarify which metadata is copied by shutil.copystat in its docstring. (cherry picked from commit 4f399be0e70d8b5516b6213568b7665765bb3114) | ||||
* | closes bpo-34540: Convert shutil._call_external_zip to use subprocess rather ↵ | Benjamin Peterson | 2018-08-30 | 1 | -6/+10 |
| | | | | than distutils.spawn. (GH-8985) | ||||
* | Issue #14061: Misc fixes and cleanups in archiving code in shutil. | Serhiy Storchaka | 2016-12-16 | 1 | -15/+39 |
| | | | | | | Improved the documentation and tests for make_archive(). Improved error handling when corresponding compress module is not available. External zip executable is now used if the zlib module is not available. | ||||
* | Issue #28488: shutil.make_archive() no longer adds entry "./" to ZIP archive. | Serhiy Storchaka | 2016-10-23 | 1 | -3/+4 |
| | |||||
* | Issue #24982: shutil.make_archive() with the "zip" format now adds entries | Serhiy Storchaka | 2015-09-08 | 1 | -0/+9 |
| | | | | | for directories (including empty directories) in ZIP file. Added test for comparing shutil.make_archive() with the "zip" command. | ||||
* | Issue #21280: Fixed a bug in shutil.make_archive() when create an archive of | Serhiy Storchaka | 2014-11-27 | 1 | -2/+2 |
| | | | | current directory in current directory. | ||||
* | Issue #19856: shutil.move() failed to move a directory to other directory | Serhiy Storchaka | 2014-02-11 | 1 | -1/+2 |
| | | | | on Windows if source name ends with os.altsep. | ||||
* | use with statement to ensure zipfile is always closed (closes #20102) | Benjamin Peterson | 2014-02-02 | 1 | -11/+9 |
| | |||||
* | Fix wrong way of adding Error information in shutil.copytree. | Georg Brandl | 2012-08-25 | 1 | -1/+1 |
| | |||||
* | Issue #14662: Prevent shutil failures on OS X when destination does not | Ned Deily | 2012-05-11 | 1 | -2/+4 |
| | | | | support chflag operations. (Patch by Hynek Schlawack) | ||||
* | Add missing name in shutil.__all__ | Éric Araujo | 2011-08-21 | 1 | -1/+2 |
| | |||||
* | Guard shutil._make_archive against a logger=None argument. | Éric Araujo | 2011-08-19 | 1 | -1/+2 |
| | | | | | Backporting two lines from the 3.x tests was enough to trigger the bug. I also took the opportunity of making the logging call lazy. | ||||
* | Backport fix for issue #10684 from 3.x | Ronald Oussoren | 2011-05-06 | 1 | -0/+6 |
| | |||||
* | Merged revisions 87277 via svnmerge from | Éric Araujo | 2010-12-15 | 1 | -2/+2 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87277 | eric.araujo | 2010-12-15 21:26:30 +0100 (mer., 15 déc. 2010) | 2 lines Fix wrong name in docstring and doc (#10693). Original patch by Eli Benderski. ........ | ||||
* | removed non needed lines | Tarek Ziadé | 2010-05-05 | 1 | -2/+1 |
| | |||||
* | Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fills | Tarek Ziadé | 2010-05-05 | 1 | -9/+3 |
| | |||||
* | shutil: removed unused import and fixed attributes names in _call_external_zip | Tarek Ziadé | 2010-04-21 | 1 | -3/+2 |
| | |||||
* | removed ztar support in shutil.make_archive | Tarek Ziadé | 2010-04-20 | 1 | -29/+9 |
| | |||||
* | Fixed #8463: added missing reference to bztar in shutil's documentation. | Tarek Ziadé | 2010-04-19 | 1 | -1/+1 |
| | |||||
* | few pep8 fixes | Tarek Ziadé | 2010-04-19 | 1 | -3/+4 |
| | |||||
* | Issue #7512: shutil.copystat() could raise an OSError when the filesystem | Antoine Pitrou | 2010-03-22 | 1 | -2/+6 |
| | | | | | didn't support chflags() (for example ZFS under FreeBSD). The error is now silenced. | ||||
* | Fix some py3k warnings in the standard library. | Florent Xicluna | 2010-03-07 | 1 | -1/+2 |
| | |||||
* | completed the __all__ list and changed the module doctest | Tarek Ziadé | 2010-02-23 | 1 | -4/+5 |
| | |||||
* | added make_archive (and secondary APIs) to shutil | Tarek Ziadé | 2010-02-23 | 1 | -1/+280 |
| | |||||
* | only test for named pipe when os.stat doesn't raise #6209 | Benjamin Peterson | 2009-06-05 | 1 | -3/+4 |
| | |||||
* | Issue #3002: `shutil.copyfile()` and `shutil.copytree()` now raise an | Antoine Pitrou | 2009-05-01 | 1 | -4/+17 |
| | | | | error when a named pipe is encountered, rather than blocking infinitely. | ||||
* | make destinsrc private | Benjamin Peterson | 2009-02-07 | 1 | -2/+2 |
| | |||||
* | Issue #2047: shutil.move() could believe that its destination path was | Antoine Pitrou | 2009-01-29 | 1 | -1/+7 |
| | | | | | inside its source path if it began with the same letters (e.g. "src" vs. "src.new"). | ||||
* | #3134: shutil referenced undefined WindowsError symbol | Antoine Pitrou | 2008-08-11 | 1 | -4/+10 |
| | |||||
* | #2663: support an *ignore* argument to shutil.copytree(). Patch by Tarek Ziade. | Georg Brandl | 2008-07-05 | 1 | -2/+33 |
| | | | | This is a new feature, but Barry authorized adding it in the beta period. | ||||
* | Issue 1577: shutil.move() where destination is a directory was doing a | Sean Reifscheider | 2008-03-18 | 1 | -7/+25 |
| | | | | copy, now it is doing a os.rename() if it's on the same file-system. | ||||
* | #1669: don't allow shutil.rmtree() to be called on a symlink. | Georg Brandl | 2008-01-20 | 1 | -0/+8 |
| | |||||
* | Patch #1490190: posixmodule now includes os.chflags() and os.lchflags() | Martin v. Löwis | 2007-02-19 | 1 | -1/+3 |
| | | | | functions on platforms where the underlying system calls are available. | ||||
* | Don't copy directory stat times in shutil.copytree on Windows | Martin v. Löwis | 2006-07-30 | 1 | -1/+7 |
| | | | | Fixes #1525866. | ||||
* | Bug #1472949: stringify IOErrors in shutil.copytree when appending | Georg Brandl | 2006-04-28 | 1 | -1/+1 |
| | | | | them to the Error errors list. | ||||
* | No need to import exceptions, they are builtins | Neal Norwitz | 2005-09-01 | 1 | -2/+1 |
| | |||||
* | patch [ 1242454 ] shutil.copytree() quits too soon after an error. | Georg Brandl | 2005-08-31 | 1 | -0/+4 |
| | |||||
* | shutil.copytree: move copystat call for the directory after the loop | Johannes Gijsbers | 2005-01-23 | 1 | -1/+1 |
| | | | | | copying files inside the directory, as that loop changes the atime and mtime. | ||||
* | Patch #1094015: | Johannes Gijsbers | 2005-01-08 | 1 | -1/+2 |
| | | | | | * Use os.makedirs() instead os.mkdir(). (bug #975763) * Use copystat() to copy directory bits (bug #1048878) | ||||
* | Bug #1048941: shutil.rmtree error handling was always broken | Johannes Gijsbers | 2004-10-31 | 1 | -27/+33 |
| | | | | | Rewrite rmtree again, this time without os.walk(). Error handling had been broken since Python 2.3, and the os.walk() version inherited this. | ||||
* | Rewrite rmtree using os.walk to fix bug #1025127: | Johannes Gijsbers | 2004-10-07 | 1 | -15/+15 |
| | | | | | | | The shutils.rmtree() implementation uses an excessive amount of memory when deleting large directory hierarchies. Before actually deleting any files, it builds up a list of (function, filename) tuples for all the files that it is going to remove. | ||||
* | Catch OSError raised when src or dst argument to os.path.samefile doesn't | Johannes Gijsbers | 2004-08-14 | 1 | -1/+4 |
| | | | | exist. | ||||
* | Raise an exception when src and dst refer to the same file via a hard link or a | Johannes Gijsbers | 2004-08-14 | 1 | -5/+11 |
| | | | | symbolic link (bug #851123 / patch #854853, thanks Gregory Ball). | ||||
* | - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects | Guido van Rossum | 2004-07-14 | 1 | -0/+1 |
| | | | | | | | | the documented behavior: the function passed to the onerror() handler can now also be os.listdir. [I could've sworn I checked this in, but apparently I didn't, or it got lost???] | ||||
* | shutil.move() will raise an exception when trying to move a directory into | Brett Cannon | 2004-06-19 | 1 | -0/+6 |
| | | | | | | itself. Closes bug #919012 . Thanks Johannes Gijsbers. | ||||
* | Fix SF bug #691276, shutil.copytree documentation bug | Neal Norwitz | 2003-02-23 | 1 | -3/+3 |
| | | | | Also use True/False instead of 1/0 for symlink flag. | ||||
* | rmtree(): Make implementation agree with documentation (both latex and | Barry Warsaw | 2003-01-24 | 1 | -13/+13 |
| | | | | | docstring). Even if ignore_errors was true, an exception would occur if path didn't exist. | ||||
* | - squashed bare except in rmtree() | Just van Rossum | 2003-01-05 | 1 | -5/+5 |
| | | | | - improved readability of rmtree; removed silly apply() | ||||
* | Added new move() function to __all__. | Raymond Hettinger | 2002-10-30 | 1 | -1/+1 |
| | |||||
* | Patch #448038: Add move(). Report errors from copytree as in shutil.Error. | Martin v. Löwis | 2002-10-07 | 1 | -2/+30 |
| |