Skip to main content

scandir/
lib.rs

1//! `scandir` is a directory iteration module like `walk`, but with more features and higher speed. Depending on the function call
2//! it yields a list of paths, tuple of lists grouped by their entry type or ``DirEntry`` objects that include file type and stat information along
3//! with the name.
4//!
5//! If you are just interested in directory statistics you can use the ``Count``.
6//!
7//! `scandir` contains following classes:
8//! - `Count` for determining statistics of a directory.
9//! - `Walk` for getting names of directory entries.
10//! - `Scandir` for getting detailed stats of directory entries.
11
12#![cfg_attr(windows, feature(windows_by_handle))]
13
14extern crate glob_sl;
15#[cfg_attr(any(feature = "bincode", feature = "json"), macro_use)]
16#[cfg(any(feature = "bincode", feature = "json"))]
17extern crate serde_derive;
18
19pub mod def;
20pub use def::*;
21pub mod common;
22pub mod count;
23pub use count::*;
24pub mod walk;
25pub use walk::*;
26pub mod scandir;
27pub use scandir::*;