zipstream
zipstream
A command line tool that allows you to easily share files and directories over the network
Installation
Build from source
Clone the repository:
git clone https://github.com/mamantoha/zipstream.git
Switch to repo-directory
cd zipstream
Build:
shards build
Copy ./bin/zipstream
to executable path.
Enjoy!
Usage
Help message:
NAME
zipstream - is a command line tool that allows you to easily share files and directories over the network
VERSION
0.4.0
SYNOPSIS
zipstream PATH [options]
If PATH is not specified it point to current directory
OPTIONS
-h, --help Show this message
-H HOST, --host=HOST Specifies the host (default: 127.0.0.1)
-p PORT, --port=PORT Specifies the port (default: 8090)
-f FORMAT, --format=FORMAT Specifies the format of output archive, zip or tar (default: zip)
-o FILENAME, --output=FILENAME Specifies the output file name without extension (default: download)
Sharing a directory (all the files in it):
$ zipstream /media/disk/music -f tar
Serving `/media/disk/music` as `download.tar`
To download the file please use one of the commands below:
wget --content-disposition http://127.0.0.1:8090
curl -OJ http://127.0.0.1:8090
Or place all files into current folder:
wget -O- http://127.0.0.1:8090 | tar -xvf -
curl http://127.0.0.1:8090 | tar -xvf -
Or just open in browser: http://127.0.0.1:8090
Contributing
- Fork it (https://github.com/mamantoha/zipstream/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Anton Maminov - creator and maintainer