This module contains some utility functions for operating on individual files.
src, dst[preserve_mode=1 , preserve_times=1 , update=0 , link=None , verbose=0 , dry_run=0 ]) |
link allows you to make hard links (using os.link) or
symbolic links (using os.symlink) instead of copying: set it
to 'hard'
or 'sym'
; if it is None
(the default),
files are copied. Don't set link on systems that don't support
it: copy_file() doesn't check if hard or symbolic linking is
available. It uses _copy_file_contents() to copy file contents.
Return a tuple "(dest_name, copied)": dest_name is the actual name of the output file, and copied is true if the file was copied (or would have been copied, if dry_run true).
src, dst[verbose, dry_run]) |
filename, contents) |
See About this document... for information on suggesting changes.