Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | #15872: Fix shutil.rmtree error tests for Windows | Hynek Schlawack | 2012-12-10 | 1 | -1/+5 | |
| |\ \ | | |/ | ||||||
| | * | #15872: Fix shutil.rmtree error tests for Windows | Hynek Schlawack | 2012-12-10 | 1 | -1/+5 | |
| | | | ||||||
* | | | #15872: Fix 3.3 regression introduced by the new fd-based shutil.rmtree | Hynek Schlawack | 2012-12-10 | 1 | -1/+37 | |
|\ \ \ | |/ / | | | | | | | | | | | | | It caused rmtree to not ignore certain errors when ignore_errors was set. Patch by Alessandro Moura and Serhiy Storchaka. | |||||
| * | | #15872: Fix 3.3 regression introduced by the new fd-based shutil.rmtree | Hynek Schlawack | 2012-12-10 | 1 | -1/+37 | |
| |\ \ | | |/ | | | | | | | | | | | | | It caused rmtree to not ignore certain errors when ignore_errors was set. Patch by Alessandro Moura and Serhiy Storchaka. | |||||
| | * | #15872: Add tests for a 3.3 regression in the new fd-based shutil.rmtree | Hynek Schlawack | 2012-12-10 | 1 | -0/+46 | |
| | | | | | | | | | | | | | | | It cause shutil.rmtree not ignore all errors. Also add a test ensuring that rmtree fails when being called on a symlink. Patch by Serhiy Storchaka. | |||||
| | * | Issue #14662: Prevent shutil failures on OS X when destination does not | Ned Deily | 2012-05-11 | 1 | -0/+30 | |
| | | | | | | | | | | | | support chflag operations. (Patch by Hynek Schlawack) | |||||
* | | | #1492704: Ensure and document backward compatibility of the change | Hynek Schlawack | 2012-10-28 | 1 | -0/+2 | |
| | | | ||||||
* | | | Closes #1492704: Make shutil.copyfile() raise a distinct SameFileError | Hynek Schlawack | 2012-10-07 | 1 | -3/+12 | |
|/ / | | | | | | | Patch by Atsuo Ishimoto. | |||||
* | | #1492704: Backout and wait for 3.4 | Hynek Schlawack | 2012-07-19 | 1 | -12/+3 | |
| | | ||||||
* | | #1492704: Make shutil.copyfile() raise a distinct SameFileError | Hynek Schlawack | 2012-07-19 | 1 | -3/+12 | |
| | | | | | | | | Patch by Atsuo Ishimoto. | |||||
* | | #15238: Fix xattr related shutil.copystat tests | Hynek Schlawack | 2012-07-16 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | - Loosen up test as Fedora has implicit xattrs - Actually test the destination for xattrs Should make Fedora buildbot green again. | |||||
* | | Issue #15202: Consistently use the name "follow_symlinks" for | Larry Hastings | 2012-07-15 | 1 | -14/+14 | |
| | | | | | | | | new parameters in os and shutil functions. Patch by Serhiy Storchaka. | |||||
* | | - Issue #15238: shutil.copystat now copies Linux "extended attributes". | Larry Hastings | 2012-07-15 | 1 | -0/+10 | |
| | | ||||||
* | | Check for all used fd-based functions in shutil.rmdir, closes #15218 | Hynek Schlawack | 2012-06-29 | 1 | -1/+5 | |
| | | ||||||
* | | #4489: Don't follow ever symlinks in rmtree | Hynek Schlawack | 2012-06-28 | 1 | -1/+33 | |
| | | | | | | | | Also added several regression tests. | |||||
* | | Issue #15817: Bugfix: remove temporary directories test_shutil was leaving | Larry Hastings | 2012-06-26 | 1 | -0/+3 | |
| | | | | | | | | behind. | |||||
* | | #4489 Make fd based rmtree work on bytes | Hynek Schlawack | 2012-06-25 | 1 | -0/+9 | |
| | | ||||||
* | | Remove debug output from test_shutil | Hynek Schlawack | 2012-06-24 | 1 | -2/+0 | |
| | | ||||||
* | | Issue #4489: Rename the feature marker for the symlink resistant rmtree and ↵ | Nick Coghlan | 2012-06-24 | 1 | -2/+2 | |
| | | | | | | | | store it as a function attribute | |||||
* | | Avoid depending on directory iteration order in test_shutil | Antoine Pitrou | 2012-06-23 | 1 | -6/+5 | |
| | | ||||||
* | | Add debug output to test_shutil | Antoine Pitrou | 2012-06-23 | 1 | -0/+2 | |
| | | ||||||
* | | Proper cleanup in test_shutil, even in case of error. | Antoine Pitrou | 2012-06-23 | 1 | -8/+6 | |
| | | ||||||
* | | #4489: Fix usage of fd-based functions to new api introduced earlier today | Hynek Schlawack | 2012-06-23 | 1 | -2/+21 | |
| | | | | | | | | | | | | | | | | 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 attacks | Hynek Schlawack | 2012-06-23 | 1 | -18/+45 | |
| | | | | | | | | | | It is used automatically on platforms supporting the necessary os.openat() and os.unlinkat() functions. Main code by Martin von Löwis. | |||||
* | | Issue #14626: Fix buildbot issues on FreeBSD (AMD64). (Fingers crossed.) | Larry Hastings | 2012-06-23 | 1 | -1/+1 | |
| | | ||||||
* | | Issue #14626: Large refactoring of functions / parameters in the os module. | Larry Hastings | 2012-06-22 | 1 | -6/+6 | |
| | | | | | | | | | | | | | | | | | | 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 Pitrou | 2012-06-22 | 1 | -0/+10 | |
| | | ||||||
* | | Fix #444582. Add shutil.which function for finding programs on the system path. | Brian Curtin | 2012-06-22 | 1 | -1/+44 | |
| | | ||||||
* | | Fix #14772: Return the destination from some shutil functions. | Brian Curtin | 2012-06-18 | 1 | -0/+41 | |
| | | ||||||
* | | Try to fix test_shutil failure under Fedora - patch by Hynek. | Antoine Pitrou | 2012-05-12 | 1 | -1/+1 | |
| | | ||||||
* | | Issue #14082: shutil.copy2() now copies extended attributes, if possible. | Antoine Pitrou | 2012-05-12 | 1 | -0/+74 | |
| | | | | | | | | Patch by Hynek Schlawack. | |||||
* | | Issue #14662: Prevent shutil failures on OS X when destination does not | Ned Deily | 2012-05-11 | 1 | -0/+29 | |
| | | | | | | | | support chflag operations. (Patch by Hynek Schlawack) | |||||
* | | Relax tests to fix buildbot failure | Antoine Pitrou | 2012-02-08 | 1 | -2/+2 | |
| | | ||||||
* | | Issue #13609: Add two functions to query the terminal size: | Antoine Pitrou | 2012-02-08 | 1 | -1/+47 | |
| | | | | | | | | | | os.get_terminal_size (low level) and shutil.get_terminal_size (high level). Patch by Zbigniew Jędrzejewski-Szmek. | |||||
* | | Issue #9993: When the source and destination are on different filesystems, | Antoine Pitrou | 2012-01-06 | 1 | -0/+43 | |
| | | | | | | | | | | | | 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. | |||||
* | | Mock the rename failure a bit better | Antoine Pitrou | 2012-01-02 | 1 | -1/+2 | |
| | | ||||||
* | | Issue #12715: Add an optional symlinks argument to shutil functions ↵ | Antoine Pitrou | 2011-12-29 | 1 | -0/+219 | |
| | | | | | | | | | | | | | | | | | | (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. | |||||
* | | #12191: fix build failures, explicitly passing group argument when I want to ↵ | Sandro Tosi | 2011-08-22 | 1 | -2/+2 | |
| | | | | | | | | test it | |||||
* | | #12191: add shutil.chown() to change user and/or group owner of a given path ↵ | Sandro Tosi | 2011-08-22 | 1 | -0/+59 | |
| | | | | | | | | also specifying their names. | |||||
* | | Clean up test_shutil, to facilitate upcoming improvements (#12721). | Éric Araujo | 2011-08-12 | 1 | -96/+69 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests now have two convenience functions to wrap os.path.join, open and read or write instead of four or six slightly different functions. The new functions accept a tuple of path segments but not a list anymore, as it makes no sense to use a list here; I have also removed the default value for the contents in write_file, as I find it better to have the contents at the call site. For simple open then read/write calls, I have left the usual idiom (with open + read/write), as it is short and readable enough. I’ve also changed some convoluted cleanup code to just use rmtree, and removed dubious LBYL os.path.exists checks. The tests still pass on my machine, and leave no file in $TMP. test_shutil is not as clean as it could be, but I’ll stop here. Initial patch provided by Hynek Schlawack, in preparation for a new feature with new tests in #12715. | |||||
* | | merge from 3.2 | Senthil Kumaran | 2011-07-04 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | Fix closes issue issue12470 - check for utime for the skipUnless condition. | Senthil Kumaran | 2011-07-04 | 1 | -1/+1 | |
| | | ||||||
* | | Clean up NEWS entry and tests for shutil.disk_usage (#12442) | Éric Araujo | 2011-07-02 | 1 | -5/+5 | |
| | | ||||||
* | | Issue #12442: add shutil.disk_usage() | Giampaolo Rodola' | 2011-07-01 | 1 | -0/+10 | |
| | | ||||||
* | | Issue #12451: Add support.create_empty_file() | Victor Stinner | 2011-06-30 | 1 | -3/+2 | |
| | | | | | | | | | | | | | | We don't need to create a temporary buffered binary or text file object just to create an empty file. Replace also os.fdopen(handle).close() by os.close(handle). | |||||
* | | Refactor a few tests to use the new requires_zlib decorator. | Ezio Melotti | 2011-05-19 | 1 | -12/+7 | |
|/ | ||||||
* | merge from 3.1 | Ronald Oussoren | 2011-05-06 | 1 | -0/+18 | |
|\ | ||||||
| * | Fix for issue 10684: Folders get deleted when trying to change case with ↵ | Ronald Oussoren | 2011-05-06 | 1 | -0/+18 | |
| | | | | | | | | shutil.move (case insensitive file systems only) | |||||
| * | Merged revisions 85503 via svnmerge from | Antoine Pitrou | 2010-10-14 | 1 | -4/+8 | |
| | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85503 | antoine.pitrou | 2010-10-15 00:11:44 +0200 (ven., 15 oct. 2010) | 2 lines More proper closing of files ........ | |||||
| * | Merged revisions 80833 via svnmerge from | Tarek Ziadé | 2010-05-05 | 1 | -1/+105 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 ........ ................ |