docs: public static String getFirstPathComponent(String path) {
          File localf = new File(path);
          File last = localf;
          while (localf.getParentFile() != null) {
              last = localf;
              localf = localf.getParentFile();
          }
          return last.getName();
      }