pub fn compute_target_path(
rule: &RedirectionRule,
rel_key: &str,
) -> Option<PathBuf>Expand description
Computes the full target path for a redirected file. Returns None if
the rule has no target configured, there’s nothing to compute a path
against.
- Literal glob:
targetis the replacement/write file, used as-is. - Wildcard glob: preserves the relative sub-directory structure
below the rule’s fixed prefix, via [
crate::matched_suffix], the same computationHookConfig::resolveuses. Exactly one implementation, so a file written viaHookResolver::resolve_path_for_writeand one probed viaHookResolver::resolve_pathorHookResolver::resolve_path_for_deleteland at the same path for the same rel_key.