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

#1834 in Filesystem

Download history 217/week @ 2025-07-26 230/week @ 2025-08-02 217/week @ 2025-08-09 240/week @ 2025-08-16 238/week @ 2025-08-23 557/week @ 2025-08-30 654/week @ 2025-09-06 456/week @ 2025-09-13 338/week @ 2025-09-20 198/week @ 2025-09-27 202/week @ 2025-10-04 186/week @ 2025-10-11 139/week @ 2025-10-18 123/week @ 2025-10-25 261/week @ 2025-11-01 150/week @ 2025-11-08

680 downloads per month
Used in bootupd

MIT/Apache

42KB
874 lines

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.


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

Dependencies

~2MB
~46K SLoC