def move(old_metadata, new_filename):
    if old_metadata.path in ignore_move:
        ignore_move.discard(old_metadata.path)
        return

    new_metadata = plug.move_file(old_metadata, new_filename)
    new_metadata.extra['revision'] = os.path.getmtime(new_filename)
    # We update the size in case the file was moved very quickly after a change
    # so the old metadata are not up-to-date
    new_metadata.size = os.path.getsize(new_metadata.path)
    new_metadata.write()
dataset/ETHPy150Open onitu/onitu/drivers/local_storage/onitu_local_storage/local_storage.py/move/original