Function cachedir::get_tag_state

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

Gets the state of the tag in the specified directory.

Will return an error if:

  • The directory can’t be accessed for any reason (it doesn’t exist, permission error etc.)
  • The CACHEDIR.TAG in the directory exists but can’t be accessed or read from