Function fuchsia_fs::file::open_in_namespace_deprecated

source ·
pub fn open_in_namespace_deprecated(
    path: &str,
    flags: OpenFlags,
) -> Result<FileProxy, OpenError>
Expand description

DEPRECATED - Use open_in_namespace instead.

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

The target is assumed to implement fuchsia.io.File but this isn’t verified. To connect to a filesystem node which doesn’t implement fuchsia.io.File, 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 FileProxy channel pair will be closed with an epitaph.