2 unstable releases

0.2.0 Nov 4, 2021
0.1.0 Sep 26, 2021

#1004 in Filesystem

MIT license

24KB
553 lines

fftp

fftp is the "Fast File Transport Protocol". It transfers files quickly between computers on a network with low overhead.

Motivation

FTP uses two ports which makes it inconvenient to reverse proxy. HTTP file servers might be too bulky for certain things, and they aren't as fast as FTP. Both use TCP. This is my duct tape and chicken wire compromise.

Use

The client is ff. The server is ffd.

# Create a file.
mkdir test
echo "hi" > test/test.txt

# Start running a server.
ffd MY_LOCAL_IP:8080 test &

# List files available.
ff MY_LOCAL_IP:8080 ls

# Download a file.
ff MY_LOCAL_IP:8080 get test.txt

Goals

  • Minimal communication overhead
  • Fast
  • Maintainable

Dependencies

~9–22MB
~289K SLoC