public static String asDirPath ( String path ) { String dirPath = path ; if ( ! path . equals ( JawrConstant . URL_SEPARATOR ) ) { dirPath = JawrConstant . URL_SEPARATOR + normalizePath ( path ) + JawrConstant . URL_SEPARATOR ; } return dirPath ; }
Normalizes a path and adds a separator at its start and its end .