See [Fs::chroot_path].
(&self, path: impl AsRef<Path>)
| 441 | |
| 442 | /// See [Fs::chroot_path]. |
| 443 | pub fn chroot_path_str(&self, path: impl AsRef<Path>) -> String { |
| 444 | match self { |
| 445 | Self::Chroot(root) => append(root.path(), path).to_string_lossy().to_string(), |
| 446 | _ => path.as_ref().to_path_buf().to_string_lossy().to_string(), |
| 447 | } |
| 448 | } |
| 449 | } |
| 450 | |
| 451 | impl Default for Fs { |