17 releases

new 0.2.2 Jul 22, 2021
0.1.13 Mar 5, 2021
0.1.9 Nov 10, 2020
0.1.4 Jul 26, 2020
0.1.2 Aug 23, 2019

#46 in Filesystem

Download history 438/week @ 2021-04-04 232/week @ 2021-04-11 196/week @ 2021-04-18 428/week @ 2021-04-25 202/week @ 2021-05-02 276/week @ 2021-05-09 179/week @ 2021-05-16 193/week @ 2021-05-23 242/week @ 2021-05-30 433/week @ 2021-06-06 280/week @ 2021-06-13 274/week @ 2021-06-20 318/week @ 2021-06-27 309/week @ 2021-07-04 267/week @ 2021-07-11 367/week @ 2021-07-18

1,208 downloads per month
Used in 3 crates

MIT/Apache

41KB
879 lines

Helpers for the openat crate

See https://crates.io/crates/openat

This crate defines a number of extension methods on openat::Dir with the common file utility functions that many real applications need.

This code originated from https://github.com/projectatomic/rpm-ostree/blob/016c1c5e627fc2a8cd3266ccda3a47a5f8992594/rust/src/openat_utils.rs

License

Licensed under either of


lib.rs:

Extension methods for openat::Dir and std::fs::File

use openat_ext::OpenatDirExt;

The openat crate is a low-level API, generally just exposing thin wrappers for the underlying system call. This crate offers a number of common higher level convenience functions.

More recently, there is also an FileExt available; it currently just contains an optimized file copy method that will hopefully go into the standard library.

Dependencies

~1.5MB
~29K SLoC