Extended utilities for working with files and filesystems in Rust.
requires Rust stable 1.8 or greater.
- file descriptor duplication.
- file locks.
- file (pre)allocation.
- file allocation information.
- filesystem space usage information.
fs2 should work on any platform supported by
fs2 is continuously tested on:
Simple benchmarks are provided for the methods provided. Many of these
benchmarks use files in a temporary directory. On many modern Linux distros the
default temporary directory,
/tmp, is mounted on a tempfs filesystem, which
will have different performance characteristics than a disk-backed filesystem.
The temporary directory is configurable at runtime through the environment (see
fs2 is primarily distributed under the terms of both the MIT license and the
Apache License (Version 2.0).
Copyright (c) 2015 Dan Burkert.