On 07/10/17 14:22, Peter Uhnák wrote: > On Sat, Oct 7, 2017 at 1:02 PM, Steven R. Baker > <[email protected] <mailto:[email protected]>> wrote: > > Is it cached or something? How do I guarantee that I'm *definitely* > getting the current state of the directory on disk? > > > This looks extremely strange, I've never seen that inspecting > files/directories would be somehow "out of sync" with the disk, > because it is always asking the disk. > > > > Should I not even be using FileReference for this? > > > If you are loading png icons into Pharo, you can consider > using https://github.com/peteruhnak/IconFactory/ instead (shameless > self promotion :) )
Will definitely switch to this; I wasn't aware of the pattern, but obviously I want to follow them where possible. :) > Peter
