Add the `File::getModel()` and `Folder::getModel()` methods (see #5656)