Function read_retention_file
Source pub fn read_retention_file(dir: &Path) -> Result<Option<RetentionFileConfig>>
Expand description
Reads a .retention file from the given directory.
§Returns
Ok(Some(config)) if the file exists and was parsed successfully
Ok(None) if the file does not exist
§Errors
Returns an error if the file exists but cannot be read or parsed as valid TOML.