public String getTrashDirPath(String filePath) throws Exception {
    String trashDirPath = getTrashDirPath();

    Path path = new Path(filePath);
    trashDirPath = trashDirPath + "/" + path.getName();

    return trashDirPath;
  }
Trash directory path.

@param filePath the path to the file
@return trash directory path for the file
@throws Exception
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java