scanit 0.3.9

A fast, multi-threaded filesystem search tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use ignore::Error as WalkError;
use regex::Error as RegexError;
use std::io::Error as IoError;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum ScanError {
    #[error("I/O error: {0}")]
    Io(#[from] IoError),
    #[error("Regex error, consider using -r to escape the Regex: {0:?}")]
    Regex(#[from] RegexError),
    #[error("Directory traversal error: {0}")]
    Walk(#[from] WalkError),
    #[error("Scanit error: {0}")]
    Other(String),
}