No description
- Rust 100%
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
toss-plus
Upload files and directories to streamshare from the terminal. Enhanced fork of to-streamshare.
Install
cargo install toss-plus
Upload
Single files are uploaded directly. Directories are automatically packed into a tar archive. Compression flags work on both.
toss file.txt # upload file directly
toss my-folder/ # uploads as my-folder.tar
toss file.txt --zip # file.txt.zip, default level 6
toss file.txt --zip 9 # zip, max compression (1–9)
toss my-folder/ --zip # my-folder.zip
toss file.txt --zstd # file.txt.zst, default level 3
toss file.txt --zstd 22 # zstd, max compression (0–22)
toss my-folder/ --zstd # my-folder.tar.zst
toss file.txt --7z # file.txt.7z, default level 5
toss file.txt --7z 9 # 7z/LZMA2, max compression (1–9)
toss my-folder/ --7z # my-folder.7z
toss file.txt --chunk-size 8388608 # custom chunk size (1MB–10MB, default 4MB)
Download
toss --download "file_identifier"
toss --download "file_identifier" --path ~/Downloads
toss --download "file_identifier" --replace # overwrite if file already exists
Delete
toss --delete "file_identifier" # uses saved token if uploaded from this system
toss --delete "file_identifier/deletion_token" # explicit token
History
Uploads from this system are saved locally and their deletion tokens stored for use with --delete.
toss --list # show all files uploaded from this system