fn derive_dirs_path(base_path: &Path, digest: &B3Digest) -> Path