#async-fs #fs #path #statistics

afs

a filesystem library for Rust, inspired by @cross/afs

2 releases

Uses new Rust 2024

new 0.0.2 Jun 10, 2025
0.0.1 Mar 26, 2025

#951 in Filesystem

Download history 138/week @ 2025-03-26 5/week @ 2025-04-02 1/week @ 2025-04-09 1/week @ 2025-04-16 2/week @ 2025-04-30 9/week @ 2025-05-14 69/week @ 2025-06-04

78 downloads per month

MIT license

28KB
507 lines

afs

fs extensions for Rust

Usage

fn main() {
    afs::write_file_sync("foo.txt", "hello world").unwrap();
}

Modules

Stat

method sync async
stat std tokio
exists std tokio
isDir std tokio
isFile std tokio
isSymlink std tokio
size std tokio
find std tokio
diskusage std tokio
hash std tokio
which std tokio

Io

method sync async
appendFile std tokio
readFile std tokio
writeFile std tokio

Ops

method sync async base impl
FsWatcher cargo-watch
unlink std
dirpath std
mkdir std
cwd std
chdir std
mktempdir std
rm std
rmdir std
cp std
mktempfile std
link std
unlink std
readdir std
readlink std
rename std
chmod std
chown std
open std
access std
constants std

Dependencies

~6–17MB
~243K SLoC