The FileLoader class now moves the downloaded file into a hashed directory system. When a new FileLoader is created and load() called, the class first checks to see if the file already exists in the directory system. If so, it transparently dispatches the Complete event.
The FileManager class is actually used to create FileLoader instances. The FileManager piggybacks on the events coming from loader so it can keep a database of when files were loaded and the last time they were used… and eventually prune the cache by LRU.
Much excitement. I did about three hours on this today, some before and some after my job.
Leave a Reply