summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
Commit message (Collapse)AuthorAgeFilesLines
* Bug #1472949: stringify IOErrors in shutil.copytree when appendingGeorg Brandl2006-04-281-1/+1
| | | | them to the Error errors list.
* No need to import exceptions, they are builtinsNeal Norwitz2005-09-011-2/+1
|
* patch [ 1242454 ] shutil.copytree() quits too soon after an error.Georg Brandl2005-08-311-0/+4
|
* shutil.copytree: move copystat call for the directory after the loopJohannes Gijsbers2005-01-231-1/+1
| | | | | copying files inside the directory, as that loop changes the atime and mtime.
* Patch #1094015:Johannes Gijsbers2005-01-081-1/+2
| | | | | * Use os.makedirs() instead os.mkdir(). (bug #975763) * Use copystat() to copy directory bits (bug #1048878)
* Bug #1048941: shutil.rmtree error handling was always brokenJohannes Gijsbers2004-10-311-27/+33
| | | | | Rewrite rmtree again, this time without os.walk(). Error handling had been broken since Python 2.3, and the os.walk() version inherited this.
* Rewrite rmtree using os.walk to fix bug #1025127:Johannes Gijsbers2004-10-071-15/+15
| | | | | | | The shutils.rmtree() implementation uses an excessive amount of memory when deleting large directory hierarchies. Before actually deleting any files, it builds up a list of (function, filename) tuples for all the files that it is going to remove.
* Catch OSError raised when src or dst argument to os.path.samefile doesn'tJohannes Gijsbers2004-08-141-1/+4
| | | | exist.
* Raise an exception when src and dst refer to the same file via a hard link or aJohannes Gijsbers2004-08-141-5/+11
| | | | symbolic link (bug #851123 / patch #854853, thanks Gregory Ball).
* - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affectsGuido van Rossum2004-07-141-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 intoBrett Cannon2004-06-191-0/+6
| | | | | | itself. Closes bug #919012 . Thanks Johannes Gijsbers.
* Fix SF bug #691276, shutil.copytree documentation bugNeal Norwitz2003-02-231-3/+3
| | | | Also use True/False instead of 1/0 for symlink flag.
* rmtree(): Make implementation agree with documentation (both latex andBarry Warsaw2003-01-241-13/+13
| | | | | docstring). Even if ignore_errors was true, an exception would occur if path didn't exist.
* - squashed bare except in rmtree()Just van Rossum2003-01-051-5/+5
| | | | - improved readability of rmtree; removed silly apply()
* Added new move() function to __all__.Raymond Hettinger2002-10-301-1/+1
|
* Patch #448038: Add move(). Report errors from copytree as in shutil.Error.Martin v. Löwis2002-10-071-2/+30
|
* shutil.copyfile(src,dst) was clobbering the file when the src and dst wereRaymond Hettinger2002-09-081-0/+5
| | | | | | | the same. Added check to verify the two names are not the same. Does not check the actual files to see if there is a symbolic link. Closes SF bug 490165 and Tzot's patch 604600.
* Replace obsolete stat module constants withWalter Dörwald2002-06-061-3/+3
| | | | | | equivalent attributes in a few more spots. This closes SF patch http://www.python.org/sf/562373
* Replace boolean test with is None.Raymond Hettinger2002-06-021-1/+1
|
* bunch more __all__ listsSkip Montanaro2001-02-151-0/+2
| | | | | | also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
* Patch #103342: Make shutil.copytree more useful under Jython.Tim Peters2001-01-211-5/+8
|
* Whitespace normalization.Tim Peters2001-01-151-2/+2
|
* apply patch #100868 from Moshe Zadka:Greg Stein2000-07-121-5/+10
| | | | refactor the copying of file data. new: shutil.copyfileobj(fsrc, fdst)
* Fred Gansevles <gansevle@cs.utwente.nl>:Fred Drake2000-04-071-1/+1
| | | | | The copytree function doesn't pass the symlinks parameter in recursicve calls
* The third and final doc-string sweep by Ka-Ping Yee.Guido van Rossum2000-02-041-1/+1
| | | | | | | | The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac.
* Typo in comment (on Mac, it's the *resource* fork that's not copied,Guido van Rossum1999-08-181-1/+1
| | | | the data fork *is* copied).
* Add import sys, needed by reference to sys.exc_info() in rmtree().Guido van Rossum1999-02-231-0/+1
| | | | Discovered by Mitch Chapman.
* Change the order of the utime() and the chmod() call in copystat().Guido van Rossum1999-01-141-1/+1
| | | | | This doesn't make a bit of difference on Unix, but apparently on Windows NT you need write permission before you can set the utime...
* Fix append() calls with more than 1 argument.Guido van Rossum1998-10-071-2/+2
|
* ST_MODE should be ST_MTIME in utime call in copystat. Thanks to Mike Orr.Guido van Rossum1998-10-021-1/+1
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-41/+41
|
* Added rmtree(), to recursively remove a directory tree.Guido van Rossum1998-02-061-0/+32
| | | | Code by David Ascher (docstring by me).
* Transformed comments to doc strings.Guido van Rossum1997-04-291-34/+45
| | | | Added symlinks option to copytree.
* Reindented at 4 spaces.Guido van Rossum1997-04-291-49/+49
|
* Add feature to copy(), copy2(): dst may be a directory.Guido van Rossum1997-04-291-22/+27
| | | | | Remove unneeded check for '.' / '..' from copytree(). Add some comments.
* Improvements to copyfile(): open the files in binary mode, and closeGuido van Rossum1997-04-291-6/+16
| | | | them in a finally clause.
* posix -> osGuido van Rossum1992-03-311-18/+17
|
* path.cat --> joinGuido van Rossum1991-08-161-2/+2
|
* Initial revisionGuido van Rossum1990-10-131-0/+70