public static String separatorsToUnix(String path){
  if (path == null || path.indexOf(WINDOWS_SEPARATOR) == -1) {
    return path;
  }
  return path.replace(WINDOWS_SEPARATOR,UNIX_SEPARATOR);
}

public static String separatorsToUnix ( String path ) { if ( path == null || path . indexOf ( WINDOWS_SEPARATOR ) == - 1 ) { return path ; } return path . replace ( WINDOWS_SEPARATOR , UNIX_SEPARATOR ) ; }
converts all separators to the unix separator of forward slash .
