code: static FileEntry obtainDirectoryFileEntry(String path) {
      try {
        FileEntry lastEntry = null;
        Constructor<FileEntry> c =
            FileEntry.class.getDeclaredConstructor(FileEntry.class, String.class, int.class,
                boolean.class);
        c.setAccessible(true);
        for (String part : path.split("/")) {
          lastEntry = c.newInstance(lastEntry, part, TYPE_DIRECTORY, lastEntry == null);
        }
        return lastEntry;
      } catch (NoSuchMethodException ignored) {
      } catch (InvocationTargetException ignored) {
      } catch (InstantiationException ignored) {
      } catch (IllegalAccessException ignored) {
      }
      return null;
    }
docs: Get a {@link FileEntry} for an arbitrary path.