Is your feature request related to a problem? Please describe.
The main problem now is with the 'exists' function.
Currently, 'exists' function and scanning logic rely on &str and Option<&str>. This is incorrect. Because it may cause errors with ownership. Using UTF-8 for filesystem routes in Rust is not idiomatic.
Describe the solution you'd like
Refactor of the exists() feature. Implementation of PathBuf to the scanning function
Describe alternatives you've considered
Stick with inconsistent logic and &str