FsMeta
This crate adds the ability to recursively walk through a directory in an async fashion. The result is metadata about the directory which currently includes:
- Get the total size of the directory in bytes
- Get the size of files
- Formatting of the file and directory sizes in human readable format (B, KiB, MiB, ...)
- Fetch all the directories
- Fetch all the files
- Fetch the created, assessed and modified timestamps in Tai64N (monotonic, no leap seconds) timstamps
- Fetch the created, assessed and modified timestamps in Local time (24 hour / 12 hour format)
- format timestamps according to duration
- Get the file format eg PDF or plain text
- Returns all the files and directories in current directory with any errors that occur instead of just returning the error when error is encountered (like
fs::read_dir()) - Use parallelism where applicable (TODO)
Examples
[]
= { = "*", = false} #deactivate methods for converting timestamps to human readable formats in local time setting `default-features` to `false`
- Compiling with
asyncfeature to enable asynchronously reading a directory
block_on
- Compiling with
syncfeature to enable synchronously reading a directory
LICENSE
The code is licensed under APACHE-2.0
Code of Conduct
All contributions must obey the rules in the Rust Code of Conduct by the Rust Foundation