def Move(self, new_path):
    """Move file to a location inside the file storage dir.

    """
    # Check that the file exists
    self.Exists(assert_exists=True)
    self.file_path_acceptance_fn(new_path)
    try:
      os.rename(self.path, new_path)
      self.path = new_path
    except __HOLE__, err:
      base.ThrowError("%s: can't rename to %s: ", str(err), new_path)
dataset/ETHPy150Open ganeti/ganeti/lib/storage/filestorage.py/FileDeviceHelper.Move