libfs

Crates.iolibfs
lib.rslibfs
version0.9.2
created_at2023-12-06 05:14:56.748335+00
updated_at2025-08-27 04:38:42.706639+00
description`libfs` is a library of file and filesystem operations that is supplementary to `std::fs`
homepagehttps://github.com/tarka/xcp/libfs
repositoryhttps://github.com/tarka/xcp/libfs
max_upload_size
id1059705
size57,404
Steve Smith (tarka)

documentation

README

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

Commit count: 763

cargo fmt