Hi, file-ext
is a collection of utility functions to work with files. It is tested and works on Linux, macOS and Windows.
- File
- Read
- Read partially
- Does file exist
- Create
- Read file, if it doesn't exist create and write to file
- Write to file
- Delete
- Copy
- Directory
- Create
- Does directory exist
- Delete directory
- Path
- Absolute path to working directory
- Get OS dependent path separator ('/' on Unix, '\' on Windows)
- Get path to OS temporary folder ('/tmp' on Linux and macOS, 'C:\Users\username\AppData\Local\Temp' on Windows
- Symlink
- Does symlink exist
- Get path symlink points to
- Create symlink
- User
- Get the name of the user who is running the process
- Get domain user belongs to (available only on Windows)
No additional configuration.
Take a look at mod.rs
Take a look at mod.rs
If you want to build file-ext
on your own, make sure you have Rust installed.
$ cargo build
If you want to test file-ext
.
$ cargo test
Use GitHub discussions, issues and pull requests.
There is Rust Web Server Discord where you can ask questions and share ideas.
Follow the Rust code of conduct.
Send me tips via PayPal.