def copytodir(src, dstdir):
 dst = pathjoin(dstdir, os.path.basename(src))
 copy(src, dst)

def copytodir ( src , dstdir ) : dst = pathjoin ( dstdir , os . path . basename ( src ) ) copy ( src , dst )
copy a file or a directory to an existing directory .