Crate fdrs

Crate fdrs 

Source
Expand description

Simple Find implementation.

By using the globset create matches all the files in a specified diretory and returns a Vec with results that can be serialized to a String as these implement Display.

Enums§

DirectoryEntry
This represents an ok result for all the functions exported by the fdrs library. Usually contained in a Vec.
FindError
This enum represents an error for all the functions exported by the fdrs library.

Functions§

find
This function lists all the paths from a base path and returns a DirectoryEntry enum whether the path could be read or not, if the ignore_error argument is true you will not find any DirectoryEntry::Error in the returned Vec.
find_glob
This function lists all the paths from a base path that match a glob, and filters the output using the globset spec, if the ignore_error argument is true you will not found any DirectoryEntry::Error in the returned Vec.