listArchiveEntryPaths function

List<String> listArchiveEntryPaths(
  1. List<int> archiveBytes
)

The entry paths inside a pub.dev package archive (a gzip-compressed tar), without extracting any file contents.

Implementation

List<String> listArchiveEntryPaths(List<int> archiveBytes) {
  return _decodePackageArchive(archiveBytes).files
      .map((file) => file.name)
      .toList();
}