/// Adds a new directory to the namespace for the new process.
Adds a new directory to the namespace for the new process.
Adds a new directory to the namespace for the new process .
pub fn add_dir_to_namespace(
    namespace: &mut FlatNamespace,
    path: String,
    dir: File,
) -> Result<(), Error> {
    let handle = fdio::transfer_fd(dir)?;
    namespace.paths.push(path);
    namespace.directories.push(zx::Channel::from(handle));
    Ok(())
}
pub fn add_dir_to_namespace ( namespace : & mut FlatNamespace , path : String , dir : File , ) -> Result < ( ) , Error > { let handle = fdio :: transfer_fd ( dir ) ? ; namespace . paths . push ( path ) ; namespace . directories . push ( zx :: Channel :: from ( handle ) ) ; Ok ( ( ) ) }
Adds a new directory to the namespace for the new process.
Adds a new directory to the namespace for the new process .
namespace
&mut FlatNamespace
path
String
dir
File