public static String [ ] getPathComponents ( String path ) throws InvalidPathException { path = cleanPath ( path ) ; if ( isRoot ( path ) ) { return new String [ ] { "" } ; } return path . split ( AlluxioURI . SEPARATOR ) ; }
Gets the path components of the given path . The first component will be an empty string .