fn find_fuchsia_root(&self) -> Result<PathBuf> {
        for ancester in std::env::current_exe()?.ancestors() {
            if let Ok(entries) = read_dir(ancester) {
                for entry in entries {
                    if let Ok(entry) = entry {
                        if entry.path().ends_with(".jiri_manifest") {
                            return Ok(ancester.to_path_buf());
                        }
                    }
                }
            }
        }
        ffx_bail!(
            "Cannot find fuchsia repo root from current execution location and its parent directories"
        );
    }
/// Walks the current execution path and its parent directories to find the path
/// that contains .jiri_manifest directory.
Walks the current execution path and its parent directories to find the path
that contains .jiri_manifest directory.
Walks the current execution path and its parent directories to find the path that contains . jiri_manifest directory .
fn find_fuchsia_root(&self) -> Result<PathBuf> {
        for ancester in std::env::current_exe()?.ancestors() {
            if let Ok(entries) = read_dir(ancester) {
                for entry in entries {
                    if let Ok(entry) = entry {
                        if entry.path().ends_with(".jiri_manifest") {
                            return Ok(ancester.to_path_buf());
                        }
                    }
                }
            }
        }
        ffx_bail!(
            "Cannot find fuchsia repo root from current execution location and its parent directories"
        );
    }
fn find_fuchsia_root ( & self ) -> Result < PathBuf > { for ancester in std :: env :: current_exe ( ) ? . ancestors ( ) { if let Ok ( entries ) = read_dir ( ancester ) { for entry in entries { if let Ok ( entry ) = entry { if entry . path ( ) . ends_with ( " " ) { return Ok ( ancester . to_path_buf ( ) ) ; } } } } } ffx_bail ! ( " " ) ; }
Walks the current execution path and its parent directories to find the path
that contains .jiri_manifest directory.
Walks the current execution path and its parent directories to find the path that contains . jiri_manifest directory .
&self
&self