docs: public static Path getSanitizedPath(FileSystem fs, Path directory) throws IOException {
          if(directory.getName().endsWith("#LATEST")) {
              // getparent strips out #LATEST
              return getLatestVersionedPath(fs, directory.getParent(), null);
          }
  
          return directory;
      }