Package org.apache.storm.daemon.utils
Class PathUtil
java.lang.Object
org.apache.storm.daemon.utils.PathUtil
Utility functions to make Path manipulation slightly less verbose.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic PathtruncatePathToLastElements(Path path, int numElements) Truncates path to the last numElements.
- 
Constructor Details- 
PathUtilpublic PathUtil()
 
- 
- 
Method Details- 
truncatePathToLastElementsTruncates 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.
 
 
-