This module provides functions for operating on directories and trees of directories.
name[, mode=0777 , verbose=0 , dry_run=0 ]) |
base_dir, files[, mode=0777 , verbose=0 , dry_run=0 ]) |
src, dst[preserve_mode=1 , preserve_times=1 , preserve_symlinks=0 , update=0 , verbose=0 , dry_run=0 ]) |
preserve_mode and preserve_times are the same as for copy_file in distutils.file_util; note that they only apply to regular files, not to directories. If preserve_symlinks is true, symlinks will be copied as symlinks (on platforms that support them!); otherwise (the default), the destination of the symlink will be copied. update and verbose are the same as for copy_file().
directory[verbose=0 , dry_run=0 ]) |
stdout
if
verbose is true).
Some of this could be replaced with the shutil module?
See About this document... for information on suggesting changes.