public static void validatePath ( String path ) throws InvalidPathException { boolean invalid = ( path == null || path . isEmpty ( ) ) ; if ( ! OSUtils . isWindows ( ) ) { invalid = ( invalid || ! path . startsWith ( AlluxioURI . SEPARATOR ) ) ; } if ( invalid ) { throw new InvalidPathException ( ExceptionMessage . PATH_INVALID . getMessage ( path ) ) ; } }
Checks if the given path is properly formed .