16 releases

0.2.1 Apr 28, 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

#39 in Filesystem

Download history 653/week @ 2021-01-21 742/week @ 2021-01-28 660/week @ 2021-02-04 521/week @ 2021-02-11 589/week @ 2021-02-18 525/week @ 2021-02-25 795/week @ 2021-03-04 692/week @ 2021-03-11 562/week @ 2021-03-18 419/week @ 2021-03-25 394/week @ 2021-04-01 263/week @ 2021-04-08 210/week @ 2021-04-15 372/week @ 2021-04-22 261/week @ 2021-04-29 207/week @ 2021-05-06

2,202 downloads per month
Used in 3 crates

MIT/Apache

38KB
799 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
~27K SLoC