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
379 downloads per month
Used in bootupd
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
- Apache License, Version 2.0, (./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT) at your option.
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