18 releases

0.2.3 Feb 25, 2022
0.2.2 Jul 22, 2021
0.2.1 Apr 28, 2021
0.1.13 Mar 5, 2021
0.1.2 Aug 23, 2019

#619 in Filesystem

Download history 46/week @ 2024-01-29 23/week @ 2024-02-05 22/week @ 2024-02-12 13/week @ 2024-02-19 53/week @ 2024-02-26 27/week @ 2024-03-04 24/week @ 2024-03-11 35/week @ 2024-03-18 24/week @ 2024-03-25 69/week @ 2024-04-01 20/week @ 2024-04-08 22/week @ 2024-04-15 43/week @ 2024-04-22 31/week @ 2024-04-29 59/week @ 2024-05-06

158 downloads per month
Used in bootupd

MIT/Apache

42KB
874 lines

This project is deprecated

Still maintained for now, but deprecated. Instead, we are focusing on cap-std and the successor to this crate is cap-std-ext.

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:

This crate is deprecated

This crate is deprecated. Development has shifted to the cap-std ecosystem, and the successor to this crate is cap-std-ext.

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

~2MB
~41K SLoC