12 releases (6 breaking)

0.7.1 Feb 23, 2024
0.6.0 Feb 6, 2024
0.5.0 Dec 20, 2023

#1047 in Filesystem

Download history 45/week @ 2024-01-04 180/week @ 2024-01-11 78/week @ 2024-01-18 180/week @ 2024-01-25 214/week @ 2024-02-01 222/week @ 2024-02-08 87/week @ 2024-02-15 346/week @ 2024-02-22 83/week @ 2024-02-29 53/week @ 2024-03-07 62/week @ 2024-03-14 39/week @ 2024-03-21 34/week @ 2024-03-28 29/week @ 2024-04-04 37/week @ 2024-04-11 20/week @ 2024-04-18

122 downloads per month
Used in 2 crates

GPL-3.0-only

47KB
1K SLoC

libfs: Advanced file and fs operations

libfs is a library of file and filesystem operations that is supplementary to std::fs. Current features:

  • High and mid-level functions for creating and copying sparse files.
  • Copying will use Linux copy_file_range where possible, with fall-back to userspace.
  • Scanning and merging extent information on filesystems that support it.
  • File permission copying, including xattrs.

Some of the features are Linux specific, but most have fall-back alternative implementations for other Unix-like OSs. Further support is todo.

libfs is part of the xcp project.

Crates.io doc.rs Github Actions CircleCI

Dependencies

~10–18MB
~321K SLoC