pub fn ensure_tag<P: AsRef<Path>>(directory: P) -> Result<()>Expand description
Ensures the tag exists in directory.
This function considers the CACHEDIR.TAG file in directory existing, regardless of its
content, as a success.
Will return an error if The tag file doesn’t exist and can’t be created for any reason
(the directory doesn’t exist, permission error, can’t write to the file etc.).