#fs #path #async-fs

afs

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

1 unstable release

Uses new Rust 2024

new 0.0.1 Mar 26, 2025

#143 in #fs

MIT license

19KB
285 lines

afs

fs extensions for Rust

Usage

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

Modules

Stat

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

Io

method sync async
appendFile
readFile
writeFile

Ops

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

Dependencies

~5–16MB
~231K SLoC