#file-chunk #file-chunker #file-splitter #split-file

goxoy-file-chunker

Goxoy File Chunker splits files into equal chunks

3 releases

0.0.3 Feb 25, 2024
0.0.2 Feb 23, 2024
0.0.1 Jul 18, 2023
Download history 362/week @ 2024-02-23 31/week @ 2024-03-01 6/week @ 2024-03-08 2/week @ 2024-03-15 39/week @ 2024-03-29 14/week @ 2024-04-05

55 downloads per month

MIT license

24KB
487 lines

Goxoy File Chunker

Version Downloads License Docs

This library was written to split large files into pieces of certain sizes.

Split Example

    // create FileChunk object
    let mut file_obj=FileChunk::new();
    file_obj.set_storage_path(DefaultStoragePath::TempPath);
    // set target file name
    file_obj.assign_file("file_name.extension");
    if file_obj.is_exist==true{
        file_obj.set_size(256,FileChunkType::KiloByte);
        let split_result=file_obj.split();
        if split_result==true{
            println!("chunks ready");
        }else{
            println!("error accoured");
        }
    }else{
        println!("file does not exist");
    }

Merge Example

    // create FileChunk object
    let mut file_obj=FileChunk::new();
    let merge_result=file_obj.merge("path_name");
    if merge_result==true{
        println!("file merged");
    }else{
        println!("error accoured");
    }

Lisans

MIT

Dependencies

~8.5MB
~161K SLoC