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
Licensed under either of