fuchsia_fs::directory

Function open_file

Source
pub async fn open_file(
    parent: &DirectoryProxy,
    path: &str,
    flags: Flags,
) -> Result<FileProxy, OpenError>
Expand description

Opens the given path from given parent directory as a [FileProxy], verifying that the target implements the fuchsia.io.File protocol.