On Wed, Oct 19, 2011 at 7:00 PM, Platonides Platonides@gmail.com wrote:
Russell Nelson wrote:
This is needed because some code asks for a path to the file without having a File. For example SpecialUndelete::showFile(). Basically encapsulation punch-through. This is a clean-up. If you disagree, of course feel free to propose something else.
They should be changed to fetch a File (eg. a FileDeleted class), but I don't see why that follows that we need a TempLocalPath class.
SwiftMedia files are stored in an object store (as are Microsoft Azure). Some functions need local access to these files. getPath() simply promises to hand over the path to the files if it were stored in the local filesystem.