Send Files in LAN quickly.
cargo install --git https://github.com/lonami/sf
…or build and move the artifact somewhere in your PATH
.
sf: send files in LAN quickly
usage (receive files):
sf [OPTIONS...]
available OPTIONS:
-h, --help: display this message and exit
-s, --strip-prefix: strip the common prefix from the received file paths
this is useful when receiving absolute paths from a drive you don't have,
since the drive portion will be removed as long as all paths share it
default = false
usage (send files):
sf <IP> [FILES...]
IP must be either an IP address or `auto' to enable server discovery
The <IP>
can be set to auto
.
The receiver (server) will continuously broadcast UDP packets in the local network with its IP address.
The sender (client) will listen for those UDP packets when the <IP>
is set to auto
in order to find out the server's IP.
It will then connect to it and proceed as if the server IP had been manually provided.
There is no encryption and no checks to the file paths are made. The tool should only be used in LAN you control to quickly move files around computers.
Beware the paths are received in the same way they were sent, i.e. sending absolute paths will cause the receiver to receive absolute paths too, similar with relative paths going to parent directories (try to avoid it if possible).
The program is licensed under either of
-
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.