summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | #4489: Don't follow ever symlinks in rmtreeHynek Schlawack2012-06-281-2/+2
| | | | | | | | Also added several regression tests.
* | #4489 Make fd based rmtree work on bytesHynek Schlawack2012-06-251-0/+3
| |
* | Issue #4489: Rename the feature marker for the symlink resistant rmtree and ↵Nick Coghlan2012-06-241-2/+6
| | | | | | | | store it as a function attribute
* | small refactor and PEP8 line width/docstringPhilip Jenvey2012-06-231-9/+13
| |
* | #4489: Fix usage of fd-based functions to new api introduced earlier todayHynek Schlawack2012-06-231-11/+12
| | | | | | | | | | | | | | | | Also add an explicit test for safe implementation usage on supported platforms. As a side effect, this commit adds a module-level attribute 'rmtree_is_safe' which offers introspection whether the current rmtree implementation is safe against symlink attacks.
* | #4489: Add a shutil.rmtree that isn't suspectible to symlink attacksHynek Schlawack2012-06-231-18/+81
| | | | | | | | | | It is used automatically on platforms supporting the necessary os.openat() and os.unlinkat() functions. Main code by Martin von Löwis.
* | Fix #15148. Capitalize PATH, hopefully leading to less confusionBrian Curtin2012-06-231-1/+1
| |
* | Fix #15148. Make the shutil.which docstring more thoroughBrian Curtin2012-06-231-1/+3
| |
* | file was the old arg name from an earlier patch. command matches the ↵Brian Curtin2012-06-231-2/+2
| | | | | | | | implementation
* | Issue #15148: Fixed typos in shutil.which() docstringAlexander Belopolsky2012-06-231-1/+1
| |
* | Issue #14626: Large refactoring of functions / parameters in the os module.Larry Hastings2012-06-221-27/+36
| | | | | | | | | | | | | | | | | | Many functions now support "dir_fd" and "follow_symlinks" parameters; some also support accepting an open file descriptor in place of of a path string. Added os.support_* collections as LBYL helpers. Removed many functions only previously seen in 3.3 alpha releases (often starting with "f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka; implemented by Larry Hastings.
* | Issue #444582: shutil.which() respects relative paths.Antoine Pitrou2012-06-221-1/+1
| |
* | whitespace normalizeBrian Curtin2012-06-221-1/+0
| |
* | Fix #444582. Add shutil.which function for finding programs on the system path.Brian Curtin2012-06-221-1/+49
| |
* | Fix #14772: Return the destination from some shutil functions.Brian Curtin2012-06-181-3/+10
| |
* | 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
| |