Index: dist/src/Lib/shutil.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/shutil.py,v retrieving revision 1.34 diff -c -r1.34 shutil.py *** dist/src/Lib/shutil.py 31 Oct 2004 12:05:31 -0000 1.34 --- dist/src/Lib/shutil.py 1 Jan 2005 08:23:19 -0000 *************** *** 108,114 **** """ names = os.listdir(src) ! os.mkdir(dst) errors = [] for name in names: srcname = os.path.join(src, name) --- 108,115 ---- """ names = os.listdir(src) ! os.makedirs(dst) ! copystat(src, dst) errors = [] for name in names: srcname = os.path.join(src, name) Index: dist/src/Doc/lib/libshutil.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/libshutil.tex,v retrieving revision 1.15 diff -c -r1.15 libshutil.tex *** dist/src/Doc/lib/libshutil.tex 14 Jul 2004 00:48:58 -0000 1.15 --- dist/src/Doc/lib/libshutil.tex 1 Jan 2005 08:23:19 -0000 *************** *** 1,3 **** --- 1,4 ---- + \section{\module{shutil} --- High-level file operations} *************** *** 67,74 **** \begin{funcdesc}{copytree}{src, dst\optional{, symlinks}} Recursively copy an entire directory tree rooted at \var{src}. The destination directory, named by \var{dst}, must not already exist; ! it will be created. Individual files are copied using ! \function{copy2()}. If \var{symlinks} is true, symbolic links in the source tree are represented as symbolic links in the new tree; if false or omitted, the contents of the linked files are copied to the new tree. If exception(s) occur, an Error is raised --- 68,77 ---- \begin{funcdesc}{copytree}{src, dst\optional{, symlinks}} Recursively copy an entire directory tree rooted at \var{src}. The destination directory, named by \var{dst}, must not already exist; ! it will be created as well as missing parent directories. ! Permissions and times of directories are copied with \function{copystat()}, ! individual files are copied using \function{copy2()}. ! If \var{symlinks} is true, symbolic links in the source tree are represented as symbolic links in the new tree; if false or omitted, the contents of the linked files are copied to the new tree. If exception(s) occur, an Error is raised