Skip to content
/ itfs Public

Rust iterators and iterator adaptors useful when iterating over the file system.

Notifications You must be signed in to change notification settings

juanmait/itfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itfs

Rust iterators and iterator adaptors useful when iterating over the file system.

  • component_filter: Export the struct ComponentFilter. Filter items where any of its path's Components equals one given as parameter.
  • entry_to_path: Export the struct EntryToPath. Maps an iterator over items of type DirEntry or Result<DirEntry> into one over items of type PathBuf and Result<PathBuf> respectively.
  • only_extensions: Export the struct AllowExtensions. Only will let through entries which extensions are in a list of "allowed" ones.
  • path_reroot: Export the struct PathReRoot. Given an iterator over items of type PathBuf rewrite the root of those that contains a given prefix, by using another one given as a replacement.
  • rdr: Export the struct ReadDirRecursive. Iterator similar to the standard fs::ReadDir but recursive.
  • result_filter: Export the struct ResultFilter. It maps an iterator over items of type Result<T> into one over items of type T by discarding Err variants.

Extensions

There is also the ext module which expose other modules that implement traits that extends pre existing types with new functionality / methods.

Generate and open the documentation

cargo doc --lib --open

About

Rust iterators and iterator adaptors useful when iterating over the file system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages