code: public Path getWorkingDirectory() {
      String name = get("mapred.working.dir");
      if (name != null) {
        return new Path(name);
      } else {
        try {
          Path dir = FileSystem.get(this).getWorkingDirectory();
          set("mapred.working.dir", dir.toString());
          return dir;
        } catch (IOException e) {
          throw new RuntimeException(e);
        }
      }
    }
docs: Get the current working directory for the default file system.
  
  @return the directory name.