[go: up one dir, main page]

ensure_tag

Function ensure_tag 

Source
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.).