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 |