Re-validate a previously joined path immediately before filesystem mutation.
(&self, dest: &Path)
| 206 | |
| 207 | /// Re-validate a previously joined path immediately before filesystem mutation. |
| 208 | fn revalidate_path(&self, dest: &Path) -> Result<()> { |
| 209 | self.ensure_safe_path(dest, &dest.display().to_string()) |
| 210 | .map(|_| ()) |
| 211 | } |
| 212 | |
| 213 | /// Re-validate a path before unlinking (remove_file/remove_dir). |
| 214 | /// Unlike revalidate_path, this does NOT canonicalize the final component, |
no test coverage detected