public static String makeAbsolute ( String path , String rootPath ) { if ( ! isAbsolute ( path ) ) { path = rootPath + "/" + path ; } return collapseDots ( path ) ; }
Converts the given path into an absolute one . This prepends the given rootPath and removes all . s from the path . If an absolute path is given it will not be prefixed .