Commit Graph

69 Commits

Author SHA1 Message Date
Serhiy Storchaka
fe45f65187 Issue #24982: shutil.make_archive() with the "zip" format now adds entries
for directories (including empty directories) in ZIP file.
Added test for comparing shutil.make_archive() with the "zip" command.
2015-09-08 05:47:01 +03:00
Serhiy Storchaka
c354285f2b Issue #21280: Fixed a bug in shutil.make_archive() when create an archive of
current directory in current directory.
2014-11-28 00:50:06 +02:00
Serhiy Storchaka
a4b9c878e4 Issue #19856: shutil.move() failed to move a directory to other directory
on Windows if source name ends with os.altsep.
2014-02-11 10:30:06 +02:00
Benjamin Peterson
b898b4f9e9 use with statement to ensure zipfile is always closed (closes #20102) 2014-02-02 15:30:22 -05:00
Georg Brandl
3196529f3c Fix wrong way of adding Error information in shutil.copytree. 2012-08-25 10:11:57 +02:00
Ned Deily
acdc56d0d0 Issue #14662: Prevent shutil failures on OS X when destination does not
support chflag operations.  (Patch by Hynek Schlawack)
2012-05-10 17:45:49 -07:00
Éric Araujo
04295009b8 Add missing name in shutil.__all__ 2011-08-21 16:14:01 +02:00
Éric Araujo
e7329f47e7 Guard shutil._make_archive against a logger=None argument.
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.
2011-08-19 03:07:39 +02:00
Ronald Oussoren
58d6b1b7a4 Backport fix for issue #10684 from 3.x 2011-05-06 11:31:33 +02:00
Éric Araujo
6e52cf32ad Merged revisions 87277 via svnmerge from
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.
........
2010-12-15 20:33:50 +00:00
Tarek Ziadé
31a673da52 removed non needed lines 2010-05-05 22:41:25 +00:00
Tarek Ziadé
38f81223ae Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fills 2010-05-05 22:15:31 +00:00
Tarek Ziadé
62e17ad234 shutil: removed unused import and fixed attributes names in _call_external_zip 2010-04-21 13:32:26 +00:00
Tarek Ziadé
e593fad81b removed ztar support in shutil.make_archive 2010-04-20 21:09:06 +00:00
Tarek Ziadé
8a12f940fe Fixed #8463: added missing reference to bztar in shutil's documentation. 2010-04-19 21:28:21 +00:00
Tarek Ziadé
f1c28b75e0 few pep8 fixes 2010-04-19 21:13:03 +00:00
Antoine Pitrou
513d9aeadb Issue #7512: shutil.copystat() could raise an OSError when the filesystem
didn't support chflags() (for example ZFS under FreeBSD).  The error is
now silenced.
2010-03-22 19:59:46 +00:00
Florent Xicluna
1f3b4e12e8 Fix some py3k warnings in the standard library. 2010-03-07 12:14:25 +00:00
Tarek Ziadé
2900c4413b completed the __all__ list and changed the module doctest 2010-02-23 05:36:41 +00:00
Tarek Ziadé
48cc8dc958 added make_archive (and secondary APIs) to shutil 2010-02-23 05:16:41 +00:00
Benjamin Peterson
a663a373b2 only test for named pipe when os.stat doesn't raise #6209 2009-06-05 19:09:28 +00:00
Antoine Pitrou
1fc0231a22 Issue #3002: shutil.copyfile() and shutil.copytree() now raise an
error when a named pipe is encountered, rather than blocking infinitely.
2009-05-01 20:55:35 +00:00
Benjamin Peterson
096c3ad41d make destinsrc private 2009-02-07 19:08:22 +00:00
Antoine Pitrou
707c593761 Issue #2047: shutil.move() could believe that its destination path was
inside its source path if it began with the same letters (e.g. "src" vs.
"src.new").
2009-01-29 20:19:34 +00:00
Antoine Pitrou
9fcd4b3d29 #3134: shutil referenced undefined WindowsError symbol 2008-08-11 17:21:36 +00:00