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

#603 in Filesystem

Download history 18/week @ 2023-12-12 5/week @ 2023-12-19 7/week @ 2023-12-26 8/week @ 2024-01-02 1/week @ 2024-01-09 9/week @ 2024-01-23 50/week @ 2024-01-30 14/week @ 2024-02-06 22/week @ 2024-02-13 36/week @ 2024-02-20 34/week @ 2024-02-27 28/week @ 2024-03-05 25/week @ 2024-03-12 27/week @ 2024-03-19 45/week @ 2024-03-26

133 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