Function cachedir::is_tagged

source ·
pub fn is_tagged<P: AsRef<Path>>(directory: P) -> Result<bool>
Expand description

Returns true if the tag is present at directory, false otherwise.

This is basically a shortcut for

get_tag_state(directory).map(|state| match state {
    TagState::Present => true,
    _ => false,
})

See get_tag_state for error conditions documentation.