Crate openat_ext

Source
Expand description

§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.

Structs§

  • A wrapper for atomically replacing a file. The primary field to access here is the writer. You can also configure the temporary prefix and suffix used for the temporary file before it is moved over the final destination.

Traits§