code: public static String getPwd()
    {
      String path = getUserDir();
  
      path = path.replace(getFileSeparatorChar(), '/');
  
      if (isWindows()) {
        path = convertFromWindowsPath(path);
      }
  
      return path;
    }
docs: Gets the system's user dir (pwd) and convert it to the server's format.