def copy(src, dst, verbose=False):
    """Copies the specified source file to destination directory if it is newer
    or does not yet exist.
    """
    from os import waitpid, path
    from subprocess import Popen, PIPE
    desti = path.join(dst, '')
    if not path.isdir(desti):
        from os import mkdir
        mkdir(desti)
    prsync = Popen('rsync -t -u {} {}'.format(src, desti), close_fds=True,
        shell=True, executable='/bin/bash', stdout=PIPE, stderr=PIPE)
    waitpid(prsync.pid, 0)
    error = prsync.stderr.readlines()
    prsync.stderr.close()
    prsync.stdout.close()
    if len(error) > 0:
        from fortpy.msg import warn
        warn('Error while copying {} using rsync.\n\n{}'.format(src, '\n'.
            join(error)))
