@Override
  public boolean restoreFileFromTrash(String path) {
    Optional<String> fileFromTrash = findFileFromTrash(path);
    if (!fileFromTrash.isPresent()) {
      return false;
    }
    try {
      fileIO.rename(fileFromTrash.get(), path);
      return true;
    } catch (Exception e) {
      LOG.info("{} failed to restore file, {}", tableIdentifier, path, e);
      return false;
    }
  }
Generate file location in trash

@param relativeFileLocation - relative location of file
@param trashLocation - trash location
@param deleteTime - time the file deleted
@return file location in trash
amoro-format-iceberg/src/main/java/org/apache/amoro/io/BasicTableTrashManager.java