Skip to main content

detranslate_path

Function detranslate_path 

Source
pub fn detranslate_path(fs: &Fs, host: &[u8]) -> Vec<u8> ⓘ
Expand description

Translates a host path back into the guest’s view (for readlink on /proc magic links and getcwd).

§Arguments

  • fs - Guest filesystem view.
  • host - Absolute host path.

§Returns

The guest path; a host path outside every binding is returned unchanged.