Crates.io | filego |
lib.rs | filego |
version | 0.2.2 |
source | src |
created_at | 2024-05-22 09:06:59.273015 |
updated_at | 2024-06-22 07:13:39.895018 |
description | A solution for splitting, checking and merging files |
homepage | https://github.com/alpheustangs/filego.rs |
repository | https://github.com/alpheustangs/filego.rs |
max_upload_size | |
id | 1247722 |
size | 15,021 |
A solution for splitting, checking and merging files.
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();
}
This project is MIT licensed, you can find the license file here.