dirinfo

Crates.iodirinfo
lib.rsdirinfo
version0.1.1
sourcesrc
created_at2019-01-06 04:14:36.049082
updated_at2019-01-06 08:48:23.106648
descriptionCrate dirinfo provides easy to use API for collecting various information about a directory hierarchy
homepage
repositoryhttps://github.com/renl/dirinfo
max_upload_size
id105782
size15,611
Ng Cheng Leong (renl)

documentation

README

dirinfo

Crate dirinfo provides easy to use API for collecting various information about a directory hierarchy.

To use this crate, add dirinfo as a dependency to your project's Cargo.toml:

[dependencies]
dirinfo = { git = "https://github.com/renl/dirinfo" }

Example

The following code calculates the total size in bytes of all files found in the directory hierarchy with the root directory specified by the pull function.

use dirinfo::DirInfo;

println!("{}", DirInfo::new().pull(".").get_files_size());
Commit count: 15

cargo fmt