exists

Function exists 

Source
pub fn exists<P: AsRef<Path>>(path: P) -> Result<bool>
Available on rustc_1_81 only.
Expand description

Returns Ok(true) if the path points at an existing entity.

Wrapper for fs::exists.