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

Download history 125/week @ 2024-05-18 8/week @ 2024-05-25 111/week @ 2024-06-15 278/week @ 2024-06-22 10/week @ 2024-06-29 11/week @ 2024-07-06 2/week @ 2024-07-27 103/week @ 2024-08-03 5/week @ 2024-08-10

108 downloads per month

MIT license

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