Skip to main content

newest_plugin_version

Function newest_plugin_version 

Source
fn newest_plugin_version(plugin_dir: &Path) -> Option<(PathBuf, DirComponents)>
Expand description

The newest version dir of a cache plugin, with its inventory. A dir that cannot be read - its own read_dir, or the stat of its manifest - stops the search: an older version’s inventory shown as this plugin’s own would be confidently wrong. Two arms fall through instead: a vanished dir, and a dir carrying no manifest, which is not a version dir at all.