Transfer.sh helper Rusted
The idea of the script is to store your transfer.sh links and simplify its usage, so you can remember them later and know when they will expire, but now written in Rust.
Features
- Store your Transfer.sh links in a sqlite3 file locally.
- Simplify the transfer.sh usage.
- Automatically calculates expired links.
- Option to easily delete the file from their servers.
transferhelper-rust-mk1.mp4
THIS SCRIPT IS NOT OFFICIAL.
I am not the author of the Transfer.sh service and don't have any affiliation with it.
I am just a user from their services, so I wrote this script to help me remember my links.
Transfer.sh on Github and give them a star.
Check outInstallation
This is the easiest part, just go to the releases and download the latest version, after that you just need to extract the file and execute the program inside a terminal:
./trasferhelper
If you get a error from not having executable permission just execute:
chmod +x transferhelper
You can also place the executable in your /home/$USER/.local/bin
folder, after that just execute transferhelper
in your terminal (This folder needs to be on PATH).
Usage
This script has a few commands, you can use them in your terminal:
Upload a file:
transferhelper -u <file>
View your stored links:
transferhelper -l
Delete a link:
transferhelper -d
After running this command it will ask you for the link you want to delete and if you want to delete from the cloud as well.
Delete the database:
transferhelper -DD
After running this command it will ask for confirmation.
View help:
transferhelper -h
Build the package
-
Install Rust on your machine, Rustup.
-
Clone this repository.
-
Inside the cloned folder run:
cargo b --release
- Run your executable from
target/release/transferhelper
.
.local/bin
to path
Add Just add this code to your .bashrc
or .bash_profile
# Add local bin to path
export PATH=$PATH:/home/$USER/.local/bin