org.mule.common.metadata.util
Class PathUtilities
java.lang.Object
org.mule.common.metadata.util.PathUtilities
public final class PathUtilities
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathUtilities
public PathUtilities()
extractDirectoryPath
public static String extractDirectoryPath(String path)
- Get the parent of the given path.
- Parameters:
path - The path for which to retrieve the parent
- Returns:
- The parent path. /sub/sub2/index.html -> /sub/sub2 If the given path is the root path ("/" or ""), return a blank string.
Copyright © 2015 MuleSoft, Inc.. All rights reserved.