Function check_if_path_exists

Source
pub fn check_if_path_exists(path: &Path) -> Result<bool, Error>
Expand description

Checks if a file or directory exists at the given path.

§Arguments

  • path - A Path reference to the file or directory to check for existence.

§Returns

A Result containing a bool indicating whether the file or directory exists (true) or not (false), or an std::io::Error if an I/O error occurred.