Listing files of a background asset

Is there a way to enumerate all files within a folder of an asset pack or just all files in general?

My application is using the Apple demo code to load a file from an Apple hosted asset pack:

let descriptor = try AssetPackManager.shared.descriptor(for: "NAV/NavData.db3")
defer {
  try descriptor.close()
}
                
if let path = path(for: descriptor) {
  self.database = try Database(path: path)
}

As my "Navigation Data" is updated each month with an updated asset pack I would like to have the name of the .db3 file reflect the current data cycle (e.g. NAV2601.db3, NAV2602.db3, ...)

Ideally I would like to iterate over all files within the NAV folder of the current asset pack and pick the most recent one.

Unfortunately, neither the AssetPackManager nor the AssetPack object seem to include an API for this.

It would be cool to have something like:

let files = try AssetPackManager.shared.files(for: "NAV/")
for file in files {
//Check and load
}

I am also explicitly not using the contents(at:searchingInAssetPackWithID:options:) method, as this returns Data objects directly, which aren't useful in this case, as I need the actual file path to initialise these SQLite databases.

Listing files of a background asset
 
 
Q