/// Returns `Ok(true)` if the path points at an existing entity. /// /// This function will traverse symbolic links to query information about the /// destination file. In case of broken symbolic links this will return `Ok(false)`. /// /// This is the async equivalent of [`std::path::Path::try_exists`][std]. /// /// [std]: fn@std::path::Path::try_exists /// /// # Examples /// /// ```no_run /// use tokio::fs; /// /// # async fn dox() -> std::io::Result<()> { /// fs::try_exists("foo.txt").await?; /// # Ok(()) /// # } /// ``` pubasyncfn try_exists(path: impl AsRef<Path>) -> io::Result<bool> { let path = path.as_ref().to_owned();
asyncify(move || path.try_exists()).await
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.23 Sekunden
(vorverarbeitet am 2026-08-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.