12 releases

Uses old Rust 2015

0.4.3 Jan 6, 2018
0.4.2 Jun 11, 2017
0.4.1 Dec 28, 2016
0.4.0 Nov 19, 2016
0.2.2 Nov 12, 2015

#62 in Filesystem

Download history 147232/week @ 2024-01-06 158006/week @ 2024-01-13 173302/week @ 2024-01-20 170510/week @ 2024-01-27 163833/week @ 2024-02-03 163468/week @ 2024-02-10 177474/week @ 2024-02-17 173116/week @ 2024-02-24 168504/week @ 2024-03-02 175119/week @ 2024-03-09 179245/week @ 2024-03-16 169745/week @ 2024-03-23 176689/week @ 2024-03-30 175711/week @ 2024-04-06 172513/week @ 2024-04-13 146046/week @ 2024-04-20

691,561 downloads per month
Used in 1,460 crates (202 directly)

MIT/Apache

39KB
697 lines

fs2

Extended utilities for working with files and filesystems in Rust. fs2 requires Rust stable 1.8 or greater.

Build Status Windows Build status Documentation Crate

Features

  • file descriptor duplication.
  • file locks.
  • file (pre)allocation.
  • file allocation information.
  • filesystem space usage information.

Platforms

fs2 should work on any platform supported by libc.

fs2 is continuously tested on:

  • x86_64-unknown-linux-gnu (Linux)
  • i686-unknown-linux-gnu
  • x86_64-apple-darwin (OSX)
  • i686-apple-darwin
  • x86_64-pc-windows-msvc (Windows)
  • i686-pc-windows-msvc
  • x86_64-pc-windows-gnu
  • i686-pc-windows-gnu

Benchmarks

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 env::temp_dir).

License

fs2 is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2015 Dan Burkert.

Dependencies

~215KB