Function fuchsia_fs::directory::dir_contains_with_timeout

source ·
pub async fn dir_contains_with_timeout(
    dir: &DirectoryProxy,
    name: &str,
    timeout: MonotonicDuration,
) -> Result<bool, EnumerateError>
Expand description

Returns true if an entry with the specified name exists in the given directory.

Timesout if reading the directory’s entries takes longer than the given timeout duration.