check_file_accessibility

Function check_file_accessibility 

Source
pub fn check_file_accessibility(path: &str) -> Result<(), Error>
Expand description

Check if a file exists and is readable

§Arguments

  • path - The path to the file

§Returns

Ok(()) if the file exists and is readable, otherwise an error

§Errors

Returns an error if the file does not exist, is not a file, or cannot be read