2 releases
Uses new Rust 2024
new 0.0.2 | Jun 10, 2025 |
---|---|
0.0.1 | Mar 26, 2025 |
#951 in Filesystem
78 downloads per month
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