def rsync(src, dst, password=None, extraopts=None, logfile=None):
    opts = "-q"
    if extraopts:
        opts += extraopts
    CMD = "%s %s %s %s" % (RSYNC, opts, src, dst)
    rsync = proctools.spawnpty(CMD, logfile=logfile)
    # assume a password will be requested if one is supplied here
    if password is not None:
        from pycopia import expect
        ersync = expect.Expect(rsync)
        ersync.expect("password:", timeout=2.0)
        ersync.writeln(password)
        del ersync
    rsync.wait()
    return rsync.exitstatus # user can check exit status for success
Get vlm_media instance chapter number by name or instance id.
dataset/ETHPy150Open kdart/pycopia/process/pycopia/rsynclib.py/rsync--crossover with--dataset/ETHPy150Open disqus/playa/playa/lib/vlc.py/libvlc_vlm_get_media_instance_chapter