sortedRegularFiles

public static List<PackFileIndex.PackFile> sortedRegularFiles(Path root)

Every regular file under root, sorted by pack-relative path with / separators — the same ordering the previous Files.walk(...).sorted(...) calls used, so callers that depend on entry order (the archive writers, the content digest) are unaffected.