Function fuchsia_fs::directory::open_in_namespace

source ·
pub fn open_in_namespace(
    path: &str,
    flags: Flags,
) -> Result<DirectoryProxy, OpenError>
Expand description

Opens the given path from the current namespace as a [DirectoryProxy].

To connect to a filesystem node which doesn’t implement fuchsia.io.Directory, use the functions in [fuchsia_component::client] instead.

If the namespace path doesn’t exist, or we fail to make the channel pair, this returns an error. However, if incorrect flags are sent, or if the rest of the path sent to the filesystem server doesn’t exist, this will still return success. Instead, the returned DirectoryProxy channel pair will be closed with an epitaph.