summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
Commit message (Collapse)AuthorAgeFilesLines
* [2.7] bpo-34260, shutil: fix copy2 and copystat documentation (GH-8523) ↵Zsolt Cserna2018-10-241-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 Peterson2018-08-301-6/+10
| | | | than distutils.spawn. (GH-8985)
* Issue #14061: Misc fixes and cleanups in archiving code in shutil.Serhiy Storchaka2016-12-161-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 Storchaka2016-10-231-3/+4
|
* Issue #24982: shutil.make_archive() with the "zip" format now adds entriesSerhiy Storchaka2015-09-081-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 ofSerhiy Storchaka2014-11-271-2/+2
| | | | current directory in current directory.
* Issue #19856: shutil.move() failed to move a directory to other directorySerhiy Storchaka2014-02-111-1/+2
| | | | on Windows if source name ends with os.altsep.
* use with statement to ensure zipfile is always closed (closes #20102)Benjamin Peterson2014-02-021-11/+9
|
* Fix wrong way of adding Error information in shutil.copytree.Georg Brandl2012-08-251-1/+1
|
* Issue #14662: Prevent shutil failures on OS X when destination does notNed Deily2012-05-111-2/+4
| | | | support chflag operations. (Patch by Hynek Schlawack)
* Add missing name in shutil.__all__Éric Araujo2011-08-211-1/+2
|
* Guard shutil._make_archive against a logger=None argument.Éric Araujo2011-08-191-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.xRonald Oussoren2011-05-061-0/+6
|
* Merged revisions 87277 via svnmerge fromÉric Araujo2010-12-151-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 linesTarek Ziadé2010-05-051-2/+1
|
* Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fillsTarek Ziadé2010-05-051-9/+3
|
* shutil: removed unused import and fixed attributes names in _call_external_zipTarek Ziadé2010-04-211-3/+2
|
* removed ztar support in shutil.make_archiveTarek Ziadé2010-04-201-29/+9
|
* Fixed #8463: added missing reference to bztar in shutil's documentation.Tarek Ziadé2010-04-191-1/+1
|
* few pep8 fixesTarek Ziadé2010-04-191-3/+4
|
* Issue #7512: shutil.copystat() could raise an OSError when the filesystemAntoine Pitrou2010-03-221-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 Xicluna2010-03-071-1/+2
|
* completed the __all__ list and changed the module doctestTarek Ziadé2010-02-231-4/+5
|
* added make_archive (and secondary APIs) to shutilTarek Ziadé2010-02-231-1/+280
|
* only test for named pipe when os.stat doesn't raise #6209Benjamin Peterson2009-06-051-3/+4
|
* Issue #3002: `shutil.copyfile()` and `shutil.copytree()` now raise anAntoine Pitrou2009-05-011-4/+17
| | | | error when a named pipe is encountered, rather than blocking infinitely.
* make destinsrc privateBenjamin Peterson2009-02-071-2/+2
|
* Issue #2047: shutil.move() could believe that its destination path wasAntoine Pitrou2009-01-291-1/+7
| | | | | inside its source path if it began with the same letters (e.g. "src" vs. "src.new").
* #3134: shutil referenced undefined WindowsError symbolAntoine Pitrou2008-08-111-4/+10
|
* #2663: support an *ignore* argument to shutil.copytree(). Patch by Tarek Ziade.Georg Brandl2008-07-051-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 aSean Reifscheider2008-03-181-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 Brandl2008-01-201-0/+8
|
* Patch #1490190: posixmodule now includes os.chflags() and os.lchflags()Martin v. Löwis2007-02-191-1/+3
| | | | functions on platforms where the underlying system calls are available.
* Don't copy directory stat times in shutil.copytree on WindowsMartin v. Löwis2006-07-301-1/+7
| | | | Fixes #1525866.
* Bug #1472949: stringify IOErrors in shutil.copytree when appendingGeorg Brandl2006-04-281-1/+1
| | | | them to the Error errors list.
* No need to import exceptions, they are builtinsNeal Norwitz2005-09-011-2/+1
|
* patch [ 1242454 ] shutil.copytree() quits too soon after an error.Georg Brandl2005-08-311-0/+4
|
* shutil.copytree: move copystat call for the directory after the loopJohannes Gijsbers2005-01-231-1/+1
| | | | | copying files inside the directory, as that loop changes the atime and mtime.
* Patch #1094015:Johannes Gijsbers2005-01-081-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 brokenJohannes Gijsbers2004-10-311-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 Gijsbers2004-10-071-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'tJohannes Gijsbers2004-08-141-1/+4
| | | | exist.
* Raise an exception when src and dst refer to the same file via a hard link or aJohannes Gijsbers2004-08-141-5/+11
| | | | symbolic link (bug #851123 / patch #854853, thanks Gregory Ball).
* - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affectsGuido van Rossum2004-07-141-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 intoBrett Cannon2004-06-191-0/+6
| | | | | | itself. Closes bug #919012 . Thanks Johannes Gijsbers.
* Fix SF bug #691276, shutil.copytree documentation bugNeal Norwitz2003-02-231-3/+3
| | | | Also use True/False instead of 1/0 for symlink flag.
* rmtree(): Make implementation agree with documentation (both latex andBarry Warsaw2003-01-241-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 Rossum2003-01-051-5/+5
| | | | - improved readability of rmtree; removed silly apply()
* Added new move() function to __all__.Raymond Hettinger2002-10-301-1/+1
|
* Patch #448038: Add move(). Report errors from copytree as in shutil.Error.Martin v. Löwis2002-10-071-2/+30
|