summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
Commit message (Collapse)AuthorAgeFilesLines
* - Issue #17012: shutil.which() no longer fallbacks to the PATH environmentBarry Warsaw2013-04-161-1/+5
| | | | variable if empty path argument is specified. Patch by Serhiy Storchaka.
* #17076: Make copying of xattrs more permissive of missing FS supportHynek Schlawack2013-02-051-1/+7
| | | | Patch by Thomas Wouters.
* Issue #16957: shutil.which() no longer searches a bare file name in theSerhiy Storchaka2013-01-231-4/+7
| | | | | current directory on Unix and no longer searches a relative file path with a directory part in PATH directories. Patch by Thomas Kluyver.
* Issue #16993: shutil.which() now preserves the case of the path and extensionSerhiy Storchaka2013-01-211-5/+7
| | | | on Windows.
* #15872: Fix 3.3 regression introduced by the new fd-based shutil.rmtreeHynek Schlawack2012-12-101-9/+21
|\ | | | | | | | | | | It caused rmtree to not ignore certain errors when ignore_errors was set. Patch by Alessandro Moura and Serhiy Storchaka.
* \ merge with 3.2Georg Brandl2012-08-251-1/+1
|\ \ | |/
| * 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)
* | #1492704: Backout and wait for 3.4Hynek Schlawack2012-07-191-7/+1
| |
* | #1492704: Make shutil.copyfile() raise a distinct SameFileErrorHynek Schlawack2012-07-191-1/+7
| | | | | | | | Patch by Atsuo Ishimoto.
* | Issue #15202: Consistently use the name "follow_symlinks" forLarry Hastings2012-07-151-26/+26
| | | | | | | | new parameters in os and shutil functions. Patch by Serhiy Storchaka.
* | - Issue #15238: shutil.copystat now copies Linux "extended attributes".Larry Hastings2012-07-151-22/+22
| |
* | Check for all used fd-based functions in shutil.rmdir, closes #15218Hynek Schlawack2012-06-291-2/+4
| |
* | #4489: Use dir_fd in rmdir in _rmtree_safe_fd()Hynek Schlawack2012-06-281-4/+8
| | | | | | | | | | Now that rmdir supports dir_fd, we also use it. Attackers can't even delete empty directories anymore.
* | #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
| |