Backto Python Index
import shutil
# copy file (dst could be file or dir):content
shutil.copy(src,dst)
# copy file (dst could be file or dir):content and create/modify/access time
shutil.copy2(src,dst)
#only file, src & dst must be file
shutil.copyfile(src,dst)
# copy dir
shutil.copytree(src,dst)