Hello! There’s not currently an API to do that directly, but you can achieve the same thing with AssetPackManager.url(for:). If you pass a directory path, such as NAV/, to that method, then you can use the standard methods on FileManager from Foundation, including contentsOfDirectory(atPath:), to explore the contents of the directory at the returned URL. For example: let url = try AssetPackManager.shared.url(for: NAV) let itemsInDirectory = try FileManager.default.contentsOfDirectory(atPath: url.path(percentEncoded: false)) for itemName in itemsInDirectory { let fullURL = url.appending(component: itemName) // Do something with the item at fullURL… } If a dedicated method in Background Assets to list the contents of a directory inside your asset packs would be useful, then please file a feedback report with details about your use case (what you mentioned in your original post should suffice) and reply to this thread with the feedback ID. Let us know if you need further assistance!
Topic:
App & System Services
SubTopic:
General
Tags: