#open #openat #filesystem #fs

openat-ext

Extension methods for the openat crate

13 releases

new 0.1.12 Feb 19, 2021
0.1.11 Jan 22, 2021
0.1.9 Nov 10, 2020
0.1.8 Oct 27, 2020
0.1.2 Aug 23, 2019

#82 in Filesystem

Download history 210/week @ 2020-11-04 458/week @ 2020-11-11 255/week @ 2020-11-18 399/week @ 2020-11-25 600/week @ 2020-12-02 471/week @ 2020-12-09 422/week @ 2020-12-16 282/week @ 2020-12-23 180/week @ 2020-12-30 770/week @ 2021-01-06 557/week @ 2021-01-13 654/week @ 2021-01-20 730/week @ 2021-01-27 701/week @ 2021-02-03 517/week @ 2021-02-10 557/week @ 2021-02-17

2,222 downloads per month
Used in 2 crates

MIT/Apache

32KB
674 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
~28K SLoC