def move_path(current_dir, new_dir, path):
    if current_dir[-1] != '/':
        current_dir += '/'
    if new_dir[-1] != '/':
        new_dir += '/'

    return path.replace(current_dir, new_dir, 1)
Called when a connection has been established to addr.
dataset/ETHPy150Open Lukasa/collectr/collectr/utils.py/move_path--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/interfaces.py/IProtocolFactory.buildProtocol