summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #14082: shutil.copy2() now copies extended attributes, if possible.Antoine Pitrou2012-05-121-0/+31
| | | | Patch by Hynek Schlawack.
* Issue #14662: Prevent shutil failures on OS X when destination does notNed Deily2012-05-111-2/+4
| | | | support chflag operations. (Patch by Hynek Schlawack)
* Issue #14127: Fix no-op stub for platforms that lack some "os" functions.Larry Hastings2012-05-031-1/+1
|
* Issue #14127: Add ns= parameter to utime, futimes, and lutimes.Larry Hastings2012-05-031-1/+1
| | | | | | Removed futimens as it is now redundant. Changed shutil.copystat to use st_atime_ns and st_mtime_ns from os.stat and ns= parameter to utime--it once again preserves exact metadata on Linux!
* Issue #14650: fix typo in shutil.disk_usage() docstring; patch by Hobson LaneSandro Tosi2012-04-231-1/+1
|
* Issue #13609: Add two functions to query the terminal size:Antoine Pitrou2012-02-081-0/+43
| | | | | os.get_terminal_size (low level) and shutil.get_terminal_size (high level). Patch by Zbigniew Jędrzejewski-Szmek.
* Merge edits from 3.2 (#13716, #1040439, #2945, #13770, #6715)Éric Araujo2012-02-051-1/+0
|\
| * Really make bztar support in shutil conditional.Éric Araujo2012-02-051-1/+0
| | | | | | | | | | This dict entry is added a few lines after if the bzip2 module is available, but removing this line was forgotten.
* | Issue #9993: When the source and destination are on different filesystems,Antoine Pitrou2012-01-061-2/+9
| | | | | | | | | | | | and the source is a symlink, shutil.move() now recreates a symlink on the destination instead of copying the file contents. Patch by Jonathan Niehof and Hynek Schlawack.
* | Issue #12715: Add an optional symlinks argument to shutil functions ↵Antoine Pitrou2011-12-291-26/+75
| | | | | | | | | | | | | | | | | | (copyfile, copymode, copystat, copy, copy2). When that parameter is true, symlinks aren't dereferenced and the operation instead acts on the symlink itself (or creates one, if relevant). Patch by Hynek Schlawack.
* | Remove redundant imports.Florent Xicluna2011-11-041-0/+1
| |
* | Merge 3.2Florent Xicluna2011-10-281-2/+2
|\ \ | |/
| * Closes #13258: Use callable() built-in in the standard library.Florent Xicluna2011-10-281-2/+2
| |
* | A few style changes originally done in the distutils2 repoÉric Araujo2011-09-181-4/+4
| |
* | Add missing name in shutil.__all__Éric Araujo2011-09-011-1/+2
| |
* | #12191: add shutil.chown() to change user and/or group owner of a given path ↵Sandro Tosi2011-08-221-0/+31
| | | | | | | | also specifying their names.
* | Merge 3.2Éric Araujo2011-08-211-1/+2
|\ \ | |/
| * Add missing name in shutilÉric Araujo2011-08-211-1/+1
| |
* | Merge 3.2Éric Araujo2011-08-191-1/+1
|\ \ | |/
| * Make logging call lazyÉric Araujo2011-08-191-1/+1
| |
* | Remove unused names in except clausesÉric Araujo2011-08-101-3/+3
| |
* | Clean up shutil.disk_usage.Éric Araujo2011-08-081-14/+30
| | | | | | | | | | | | | | | | | | - Move a test from call time to define time - Add the function name to __all__ - Improve docstring and docs A few lines are now duplicated (named tuple definition and docstring) but I think the end result reads better.
* | Issue #12442: add shutil.disk_usage()Giampaolo Rodola'2011-07-011-0/+19
|/
* merge from 3.1Ronald Oussoren2011-05-061-1/+7
|\
| * Fix for issue 10684: Folders get deleted when trying to change case with ↵Ronald Oussoren2011-05-061-1/+7
| | | | | | | | shutil.move (case insensitive file systems only)
| * Merged revisions 80840 via svnmerge fromTarek Ziadé2010-05-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80840 | tarek.ziade | 2010-05-06 00:43:04 +0200 (Thu, 06 May 2010) | 9 lines Merged revisions 80837 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80837 | tarek.ziade | 2010-05-06 00:41:25 +0200 (Thu, 06 May 2010) | 1 line removed non needed lines ........ ................
| * Merged revisions 80833 via svnmerge fromTarek Ziadé2010-05-051-9/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r80833 | tarek.ziade | 2010-05-06 00:27:31 +0200 (Thu, 06 May 2010) | 9 lines Merged revisions 80830 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r80830 | tarek.ziade | 2010-05-06 00:15:31 +0200 (Thu, 06 May 2010) | 1 line Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fills ........ ................
| * Merged revisions 79301 via svnmerge fromAntoine Pitrou2010-03-221-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r79301 | antoine.pitrou | 2010-03-22 21:11:09 +0100 (lun., 22 mars 2010) | 11 lines Merged revisions 79299 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r79299 | antoine.pitrou | 2010-03-22 20:59:46 +0100 (lun., 22 mars 2010) | 5 lines 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. ........ ................
* | Close #11548: Correctly handle format argument in shutil.unpack_archiveNick Coghlan2011-03-161-2/+2
| |
* | Protect logging call against None argument (fixes #11045).Éric Araujo2011-01-291-1/+2
| | | | | | | | | | | | Initial patch by Kelsey Hightower. Approved by Raymond. A test was non-trivial to write without calling the private function directly, so we moved that for later.
* | Fix wrong name in docstring and doc (#10693). Original patch by Eli Bendersky.Éric Araujo2010-12-151-2/+2
| |
* | Merged revisions 80837 via svnmerge fromTarek Ziadé2010-05-051-2/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80837 | tarek.ziade | 2010-05-06 00:41:25 +0200 (Thu, 06 May 2010) | 1 line removed non needed lines ........
* | Merged revisions 80830 via svnmerge fromTarek Ziadé2010-05-051-9/+3
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80830 | tarek.ziade | 2010-05-06 00:15:31 +0200 (Thu, 06 May 2010) | 1 line Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fills ........
* | make sure shutil checks for bz2 availability before it uses it.Tarek Ziadé2010-04-291-5/+22
| |
* | #8295 : Added shutil.unpack_archive and related APIsTarek Ziadé2010-04-281-4/+174
| |
* | added a note about the ignore_dangling_symlinks optionTarek Ziadé2010-04-231-2/+2
| |
* | Merged revisions 80306 via svnmerge fromTarek Ziadé2010-04-211-3/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80306 | tarek.ziade | 2010-04-21 15:32:26 +0200 (Wed, 21 Apr 2010) | 1 line shutil: removed unused import and fixed attributes names in _call_external_zip ........
* | Merged revisions 80282 via svnmerge fromTarek Ziadé2010-04-201-29/+10
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80282 | tarek.ziade | 2010-04-20 23:09:06 +0200 (Tue, 20 Apr 2010) | 1 line removed ztar support in shutil.make_archive ........
* | fixed typo -- thanks NickTarek Ziadé2010-04-201-1/+1
| |
* | Fixed #6547: Added the ignore_dangling_symlinks option to shutil.copytreeTarek Ziadé2010-04-201-4/+18
| |
* | Fixed #1540112: now shutil.copytree will let you provide your own copy() ↵Tarek Ziadé2010-04-191-5/+8
| | | | | | | | function
* | Merged revisions 80221 via svnmerge fromTarek Ziadé2010-04-191-1/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80221 | tarek.ziade | 2010-04-19 23:28:21 +0200 (Mon, 19 Apr 2010) | 1 line Fixed #8463: added missing reference to bztar in shutil's documentation. ........
* | Merged revisions 80218 via svnmerge fromTarek Ziadé2010-04-191-2/+3
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80218 | tarek.ziade | 2010-04-19 23:13:03 +0200 (Mon, 19 Apr 2010) | 1 line few pep8 fixes ........
* | Merged revisions 79299 via svnmerge fromAntoine Pitrou2010-03-221-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79299 | antoine.pitrou | 2010-03-22 20:59:46 +0100 (lun., 22 mars 2010) | 5 lines 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. ........
* | Merged revisions 78364 via svnmerge fromTarek Ziadé2010-02-231-4/+5
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78364 | tarek.ziade | 2010-02-23 00:36:41 -0500 (Tue, 23 Feb 2010) | 1 line completed the __all__ list and changed the module doctest ........
* | Merged revisions 78359-78360 via svnmerge fromTarek Ziadé2010-02-231-1/+279
|/ | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78359 | tarek.ziade | 2010-02-23 00:16:41 -0500 (Tue, 23 Feb 2010) | 1 line added make_archive (and secondary APIs) to shutil ........ r78360 | tarek.ziade | 2010-02-23 00:20:22 -0500 (Tue, 23 Feb 2010) | 1 line added a note on shutil new APIs ........
* Merged revisions 73250 via svnmerge fromBenjamin Peterson2009-06-051-3/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73250 | benjamin.peterson | 2009-06-05 14:09:28 -0500 (Fri, 05 Jun 2009) | 1 line only test for named pipe when os.stat doesn't raise #6209 ........
* Merged revisions 72178 via svnmerge fromAntoine Pitrou2009-05-011-4/+17
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72178 | antoine.pitrou | 2009-05-01 22:55:35 +0200 (ven., 01 mai 2009) | 4 lines Issue #3002: `shutil.copyfile()` and `shutil.copytree()` now raise an error when a named pipe is encountered, rather than blocking infinitely. ........
* Merged revisions 69415,69591,69593 via svnmerge fromBenjamin Peterson2009-02-201-2/+2
| | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69415 | benjamin.peterson | 2009-02-07 13:08:22 -0600 (Sat, 07 Feb 2009) | 1 line make destinsrc private ........ r69591 | martin.v.loewis | 2009-02-13 14:26:16 -0600 (Fri, 13 Feb 2009) | 1 line Update Tix build procedure. ........ r69593 | martin.v.loewis | 2009-02-13 14:51:48 -0600 (Fri, 13 Feb 2009) | 1 line Add optional code signing after merging. ........
* Merged revisions 69100 via svnmerge fromAntoine Pitrou2009-01-291-1/+7
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r69100 | antoine.pitrou | 2009-01-29 21:19:34 +0100 (jeu., 29 janv. 2009) | 5 lines 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"). ........