Crate openat_ext[][src]

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

FileWriter

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

FileExt

Helper functions for std::fs::File

OpenatDirExt

Helper functions for openat::Dir