public static String removeBasePath ( final String aBasePath , final String aPtPath ) { Objects . requireNonNull ( aBasePath , LOGGER . getMessage ( MessageCodes . PT_007 ) ) ; Objects . requireNonNull ( aPtPath , LOGGER . getMessage ( MessageCodes . PT_003 ) ) ; String newPath = aPtPath ; if ( aPtPath . startsWith ( aBasePath ) ) { newPath = newPath . substring ( aBasePath . length ( ) ) ; if ( newPath . startsWith ( Character . toString ( mySeparator ) ) ) { newPath = newPath . substring ( 1 ) ; } } return newPath ; }
Removes the base path from the supplied Pairtree path .