Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue 1577: shutil.move() where destination is a directory was doing a | Sean Reifscheider | 2008-03-18 | 1 | -12/+115 |
| | | | | copy, now it is doing a os.rename() if it's on the same file-system. | ||||
* | #1669: don't allow shutil.rmtree() to be called on a symlink. | Georg Brandl | 2008-01-20 | 1 | -0/+14 |
| | |||||
* | Another fix for test_shutil. Martin pointed out that it breaks some build bots | Christian Heimes | 2007-11-20 | 1 | -1/+3 |
| | |||||
* | Fixed bug #1470 | Christian Heimes | 2007-11-20 | 1 | -5/+2 |
| | |||||
* | test_copytree_simple(): This was leaving behind two new temp | Tim Peters | 2006-08-10 | 1 | -16/+36 |
| | | | | | | | | | | | | | | directories each time it ran, at least on Windows. Several changes: explicitly closed all files; wrapped long lines; stopped suppressing errors when removing a file or directory fails (removing /shouldn't/ fail!); and changed what appeared to be incorrect usage of os.removedirs() (that doesn't remove empty directories at and /under/ the given path, instead it must be given an empty leaf directory and then deletes empty directories moving /up/ the path -- could be that the conceptually simpler shutil.rmtree() was really actually intended here). | ||||
* | Whitespace normalization. | Tim Peters | 2006-07-31 | 1 | -3/+3 |
| | |||||
* | Don't copy directory stat times in shutil.copytree on Windows | Martin v. Löwis | 2006-07-30 | 1 | -0/+27 |
| | | | | Fixes #1525866. | ||||
* | Implement os.{chdir,rename,rmdir,remove} using Win32 directly. | Martin v. Löwis | 2006-05-04 | 1 | -2/+2 |
| | |||||
* | Use os.geteuid() for checking whether we are root, as suggested by | Johannes Gijsbers | 2004-12-12 | 1 | -1/+1 |
| | | | | Michael Hudson. | ||||
* | SF bug #1076467: don't run test_on_error as root, as the permission | Johannes Gijsbers | 2004-12-06 | 1 | -2/+6 |
| | | | | | errors don't get provoked that way. Also add a bunch of cross-references to bugs. | ||||
* | Bug #1071513: don't test on Cygwin, as chmod doesn't work reliably there | Johannes Gijsbers | 2004-11-23 | 1 | -1/+5 |
| | | | | | | | (http://www.cygwin.com/faq/faq_3.html#SEC41). Also check whether onerror has actually been called so this test will fail on assertion instead of on trying to chmod a non-existent file. | ||||
* | test_on_error(): Rewrite so it works on WinXP too. Unsure about 95/98/ME. | Tim Peters | 2004-11-01 | 1 | -7/+13 |
| | |||||
* | Bug #1048941: shutil.rmtree error handling was always broken | Johannes Gijsbers | 2004-10-31 | 1 | -3/+28 |
| | | | | | Rewrite rmtree again, this time without os.walk(). Error handling had been broken since Python 2.3, and the os.walk() version inherited this. | ||||
* | Document not-completely-obvious behavior in a test. | Johannes Gijsbers | 2004-09-11 | 1 | -0/+7 |
| | |||||
* | Unwrap too-smart loop: we can't use `src` for both hard and symbolic links. | Johannes Gijsbers | 2004-08-14 | 1 | -8/+16 |
| | |||||
* | Raise an exception when src and dst refer to the same file via a hard link or a | Johannes Gijsbers | 2004-08-14 | 1 | -0/+21 |
| | | | | symbolic link (bug #851123 / patch #854853, thanks Gregory Ball). | ||||
* | - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects | Guido van Rossum | 2004-07-14 | 1 | -0/+1 |
| | | | | | | | | the documented behavior: the function passed to the onerror() handler can now also be os.listdir. [I could've sworn I checked this in, but apparently I didn't, or it got lost???] | ||||
* | shutil.move() will raise an exception when trying to move a directory into | Brett Cannon | 2004-06-19 | 1 | -2/+14 |
| | | | | | | itself. Closes bug #919012 . Thanks Johannes Gijsbers. | ||||
* | Combine the functionality of test_support.run_unittest() | Walter Dörwald | 2003-05-01 | 1 | -8/+2 |
| | | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807. | ||||
* | A very minimal start to a test of the shutil module. | Barry Warsaw | 2003-01-24 | 1 | -0/+28 |