For test [Fs]'s that use a different root, returns an absolute path. This must be used for any paths indirectly used by code using a chroot [Fs].
(&self, path: impl AsRef<Path>)
| 433 | /// This must be used for any paths indirectly used by code using a chroot |
| 434 | /// [Fs]. |
| 435 | pub fn chroot_path(&self, path: impl AsRef<Path>) -> PathBuf { |
| 436 | match self { |
| 437 | Self::Chroot(root) => append(root.path(), path), |
| 438 | _ => path.as_ref().to_path_buf(), |
| 439 | } |
| 440 | } |
| 441 | |
| 442 | /// See [Fs::chroot_path]. |
| 443 | pub fn chroot_path_str(&self, path: impl AsRef<Path>) -> String { |