Awesome File Share - AFT

Aft - simple and quick file sharing server

Aft comes with a couple commands, afserver, afclient. Also included is afduo, the command with both the server and client built in. AFT automatically uses Zlib to compress files for efficient transfers.

Up and running in less than a minute!

Note that ruby needs to be installed first.

  • Fire up your shell and type: gem install aft
  • Next, start the file share server: afserver filetoshare
  • Last, start the client on the receiving end: afclient 10.0.0.23 filedownloaded
Done!

Can I install without ruby gems or root?

Sure you can, just use afduo, download the small script here

Place the script wherever you want to run it from, then run it with ruby ./afduo [options] See more information about afduo below.

Set up a server to host a file, allow several clients to download it

Just run afserver Important.pdf to let your colleagues download that important document, it goes up right away and allows your whole team to download the file, fast.

afserver --help gives:

Usage:
    afserver [file to send]

    The last argument is always the shared file

 -h, --help      :    Display this help
 Share_Me.pdf    :    Share the file

 Example: 
    afserver Important.docx

How do I use the client?

Type afclient 10.0.0.3 stats.info to download a file hosted on 10.0.0.3, and name it "stats.info"

afclient --help gives:

Usage:
    afclient [Server's IP] [output file]

    The first argument must be the server's IP
    The last argument is always the output file

 -h, --help      :    Display this help
 my_file         :    Open file for output

 Example: 
    afclient  10.0.0.54 recieve.html

What is afduo and how do I use it?

afduo is the program that I made initially, before having the idea of making a ruby gem. It's slightly more complex to use than the gem, but it has the same functionality.

afduo --help gives:

Usage:
    afduo [client/server] [Server's IP (if client)] [sent/received file]

    The last argument is always the in/out file
    Running as client means the second argument must be the server's IP

 -h, --help      :    Display this help
 -c, --client    :    Start in client mode
 -s, --server    :    Start in server mode
 my_file         :    Open file for i/o

 Examples: 
    afduo --client 127.0.0.1 recieve.html
    afduo --server infile.png

Contribute

Feel free to send pull requests, suggestions, and issues to wlib on github

Author : Daniel Ethridge