Enum scan_dir::Error
[−]
pub enum Error { Io(Error, PathBuf), Decode(PathBuf), }
Error type for scan dir
It always contains the file name of the entry so display of an error is always an informative thing
Variants
Io(Error, PathBuf)
I/O error occured when reading directory
Second parameter contains path to the original directory
Decode(PathBuf)
Can't decode filename
PathBuf contains path to the specific file which has bad filename