#local-file #cli-file #sharing #networking #devices #qr #url

app file-sharing

An easy CLI file sharing software for local networks

2 releases

0.1.1 Mar 14, 2023
0.1.0 Mar 14, 2023

#28 in #cli-file

34 downloads per month

Custom license

14KB
82 lines

File Sharing

This tool allows the user to easily share a file between two devices on the same network from the comfort of their terminal.

Use

Launch the script on the device that has the file, then scan the generated QR code or enter the URL in the browser on the destination device.
By doing so the file will be downloaded to the target device.

> file-sharing -f path/to/my/file.txt
██████████████    ██  ██      ██████  ██    ██████████████
██          ██        ████          ██      ██          ██
██  ██████  ██  ██  ████    ██  ██  ████    ██  ██████  ██
██  ██████  ██  ██                ████████  ██  ██████  ██
██  ██████  ██  ██████    ██████      ██    ██  ██████  ██
██          ██  ██    ██████████    ██  ██  ██          ██
██████████████  ██  ██  ██  ██  ██  ██  ██  ██████████████
                ████  ██████  ████  ██                    
██  ██████████      ████    ████  ████  ██  ██████████    
      ██████          ██        ████  ██    ██  ██      ██
  ██████    ██  ██  ████      ████  ██        ████        
      ████    ██  ██████    ████    ████  ████  ██    ██  
  ████    ████  ████    ██    ██  ████  ████  ██  ████    
  ████  ████  ██      ██  ████  ██    ██    ██  ██  ██  ██
  ██  ████████  ██████    ████████  ██    ████      ██    
    ██████    ██    ██  ████    ██  ████████  ██      ██  
██  ██  ██████    ██        ██    ██████  ██        ██    
████          ██        ██      ████████  ████  ██████  ██
██  ████    ████  ██  ██      ██  ██        ██    ████    
██  ████  ██  ██  ██████    ██████        ████  ██    ██  
██  ██      ██  ██  ██████        ██  ████████████  ██████
                ██    ████████  ██  ██████      ██████████
██████████████        ██████████      ████  ██  ██████    
██          ██  ████████████    ██  ██  ██      ██      ██
██  ██████  ██  ██████  ██  ██    ██    ████████████████  
██  ██████  ██  ████████  ██    ████████████  ██      ████
██  ██████  ██  ████████    ████████  ██    ██  ████  ██  
██          ██    ████  ████    ██    ██████  ████    ██  
██████████████  ██      ██  ████████              ████    

Connect to: http://192.168.178.21:8080/download

Features

  • Share large files, tested up to 10GB
  • Use your local network for file sharing, no internet access required

Building & Installing

You will need to install Cargo to build this project.

While inside the repository execute the following command:

> cargo build --release
> cp target/release/file-sharing .

or if you want to install it to your system:

> cargo install --path .

Do not forget to add your cargo binary directory to your path variable.

Future Features

  • use the https protocol
  • sharing large file
  • sharing multiple files
  • close after one download

Dependencies

~20–32MB
~326K SLoC