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

#831 in Filesystem

Download history 112/week @ 2024-07-20 100/week @ 2024-07-27 99/week @ 2024-08-03 41/week @ 2024-08-10 109/week @ 2024-08-17 100/week @ 2024-08-24 66/week @ 2024-08-31 158/week @ 2024-09-07 156/week @ 2024-09-14 64/week @ 2024-09-21 119/week @ 2024-09-28 51/week @ 2024-10-05 53/week @ 2024-10-12 22/week @ 2024-10-19 189/week @ 2024-10-26 106/week @ 2024-11-02

379 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
~42K SLoC