5 releases
0.2.3 | Aug 4, 2024 |
---|---|
0.2.2 | Jun 22, 2024 |
0.2.1 | Jun 22, 2024 |
0.2.0 | Jun 19, 2024 |
0.1.0 | May 22, 2024 |
#512 in Filesystem
108 downloads per month
15KB
259 lines
FileGo
A file splitting & merging solution.
Quick Start
Split file from a path to a directory with the split
function.
use filego::{split, SplitOptions, SplitResult};
async fn example() {
let options: SplitOptions = SplitOptions {
in_file: "path/to/file".to_string(),
out_dir: "path/to/dir".to_string(),
chunk_size: 2 * 1024 * 1024,
};
let split_result: SplitResult = split(options).await.unwrap();
}
License
This project is MIT licensed, you can find the license file here.
lib.rs
:
FileGo
A file splitting & merging solution.
Quick Start
Split file from a path to a directory with the split
function.
use filego::{split, SplitOptions, SplitResult};
async fn example() {
let options: SplitOptions = SplitOptions {
in_file: "path/to/file".to_string(),
out_dir: "path/to/dir".to_string(),
chunk_size: 2 * 1024 * 1024,
};
let split_result: SplitResult = split(options).await.unwrap();
}
Dependencies
~2.1–3MB
~49K SLoC