def copy(src, dst):
if os.path.isdir(dst):<EOL><INDENT>dst = os.path.join(dst, os.path.basename(src))<EOL><DEDENT>copyfile(src, dst)<EOL>copymode(src, dst)<EOL>
Copy data and mode bits ("cp src dst").

    The destination may be a directory.