https://github.com/alpheusday/filego.rs
A file splitting & merging solution
https://github.com/alpheusday/filego.rs
check file filego filesystem merge rust split
Last synced: 12 months ago
JSON representation
A file splitting & merging solution
- Host: GitHub
- URL: https://github.com/alpheusday/filego.rs
- Owner: alpheustangs
- License: mit
- Created: 2024-05-22T09:07:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-13T11:21:37.000Z (almost 2 years ago)
- Last Synced: 2024-10-13T14:15:09.283Z (almost 2 years ago)
- Topics: check, file, filego, filesystem, merge, rust, split
- Language: Rust
- Homepage: https://docs.rs/filego
- Size: 51.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FileGo
> **⚠️ This project is discontinued. Please migrate to [`FileRune`](https://github.com/filerune/rust) for future updates and maintenance.**
A file splitting & merging solution.
## Installation
To install this package, run the following command:
```bash
cargo add filego
```
## Quick Start
Split file from a path to a directory with `Split` struct.
```rust
use std::path::PathBuf;
use filego::split::{Split, SplitResult};
let result: SplitResult = Split::new()
.in_file(PathBuf::from("path").join("to").join("file"))
.out_dir(PathBuf::from("path").join("to").join("dir"))
.run()
.unwrap();
```
Async version also available with the `async_std` and `tokio` features:
```rust
// This is a `async_std` example
use async_std::path::PathBuf;
use filego::split::{
Split,
SplitResult,
async_std::SplitAsyncExt as _,
};
let result: SplitResult = Split::new()
.in_file(PathBuf::from("path").join("to").join("file"))
.out_dir(PathBuf::from("path").join("to").join("dir"))
.run_async()
.await
.unwrap();
```
```rust
// This is a `tokio` example
use std::path::PathBuf;
use filego::split::{
Split,
SplitResult,
tokio::SplitAsyncExt as _,
};
let result: SplitResult = Split::new()
.in_file(PathBuf::from("path").join("to").join("file"))
.out_dir(PathBuf::from("path").join("to").join("dir"))
.run_async()
.await
.unwrap();
```
## License
This project is licensed under the terms of the MIT license.