Package org.apache.storm.daemon.utils

## Class PathUtil

- java.lang.Object
- - org.apache.storm.daemon.utils.PathUtil

-     public class PathUtil
      extends Object

  Utility functions to make Path manipulation slightly less verbose.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `PathUtil()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static Path` | `truncatePathToLastElements​(Path path, int numElements)` | Truncates path to the last numElements.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PathUtil

          public PathUtil()

  - ### Method Detail

    - #### truncatePathToLastElements

          public static Path truncatePathToLastElements​(Path path,
                                                        int numElements)

      Truncates path to the last numElements.
      Parameters:
        `path` - The path to truncate.
        `numElements` - The number of elements to preserve at the end of the path.
      Returns:
        The truncated path.