QrSync
Utility to copy files over WiFi to/from mobile devices inside a terminal.
- Dependencies
- Platform
- Install
- Operational modes
- IPv6 support
- Command line options
- Acknowledgement
- License
When I built QrSync, it was only meant to send files from a terminal to a mobile device, then I found the amazing qrcp and I took some ideas from it and implemented also the possibility to copy file from the mobile device to the computer running QrSync.
Dependencies
QrSync depends on Rocket, which only builds against nightly >= 1.42.
Platform
QrSync has been tested on Linux and MacOSX. If you are interesting in having this running on Windows, please see this issue.
Install
Operational modes
QrSync can run in two mode, depending on command line options:
- Send mode: this mode is selected when a file is passed to the command line. QrSync will
generate a QR code on the terminal and start the HTTP server in send mode.
Example:
- Receive mode: this mode is selected if no file is passed to the command line. QrSync will
generate a QR code on the terminal and start the HTTP server in receive mode from the current
folder. A specific folder to save received files can be specified with --root-dir command line
option.
Example:
IPv6 support
QrSync tries to guess which interface to use and which address to bind on the selected interface. In case you want to use IPv6, ensure you have a valid non link-local address and specify --ipv6
command line argument. Remember, the IP address can be always overridden using --ip-address
command line argument.
Command line options
<filename> File
Acknowledgement
- qrcp: I took many ideas from this amazing project and "stole" most of the HTML Bootstrap based UI.
- rocket: A great HTTP framework for Rust, very expandable and simple to use.
- qr2term: Terminal based QR rendering library.
- clap: Oh man, where do I start telling how much do I love Clap?
License
See LICENSE file.