Anyone know how to retrieve a file from the cache when all you know is its file name at compile time? For clarification, what I'm looking for is something like the cacheFile() function in the following example:
var testIcon = 'file.dmi'
var iconName = "[testIcon]" // "file.dmi"
var cacheIcon = cacheFile(iconName)
ASSERT(cachIcon == testIcon)
Any ideas how to achieve this? (And I don't strictly need the ASSERT to pass. They can be technically different file instances so long as the icon is functionally equivalent.) This is for a library, so any solution will have to function on its own.
And of course you can automatically generate that list using flist() and text2file().