* (Re-)validate the file storage cache. Only makes a change if the storage was invalid, or if \a force_reload. * @param force_reload Always reload the file storage cache. */
| 108 | * @param force_reload Always reload the file storage cache. |
| 109 | */ |
| 110 | void ValidateFileList(bool force_reload = false) |
| 111 | { |
| 112 | if (force_reload || !this->file_list_valid) { |
| 113 | this->BuildFileList(this->abstract_filetype, SLO_LOAD, this->show_dirs); |
| 114 | this->file_list_valid = true; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | AbstractFileType abstract_filetype; ///< The abstract file type to list. |
| 119 | bool show_dirs; ///< Whether to show directories in the file list. |
no test coverage detected