code: public static String asPath(String path) {
          if (path == null) {
              return null;
          }
  
          // On windows we have to replace the backslash
          if (!File.separator.equals(FileUtil.URI_SEPARATOR_CHAR)) {
              return path.replace(File.separator, FileUtil.URI_SEPARATOR_CHAR);
          } else {
              return path;
          }
      }
docs: platform independent file.getPath()
  
  @param path the path to transform, or {@code null}
  @return The result will have alle platform path separators replaced by "/".