Hacker News new | ask | show | jobs
by sandreas 595 days ago
Great and detailed response, thank you. Well, I asked, because a longer while ago I wrote a cross platform tool named `graft` [1] to solve a similar issue: Having to transfer files without needing too much boilerplate on windows, linux and macOS.

`graft` is a "risk your files for convenience" tool with pretty bad performance - so I would not recommend using it for something else than `graft serve` and `graft receive`, but these two are pretty handy.

`graft serve ".zip"` will scan the current directory for `.zip` recursively, start a password authenticated sftp server and providing all findings (and only them) via `mdns`.

While you COULD use any sftp client, you also can use any other host in the same network supporting mdns to just `graft receive` (without hostname) and `graft` will find the running instances in the network. If it is only one, it will connect, otherwise you can choose.

This is indeed pretty convenient :-) - as I said, I wouldn't rely on this for important files.

1: https://github.com/sandreas/graft

1 comments

So with aft you probably could use it for the same purpose you have, but currently aft doesn't support multi transfers, but rerun each time. In the future it will probably be added, or provide an easier way to multi-transfer.

About mDNS I'm not sure since if you're already running a receiver and a sender, might as well get the local IP. aft aims to be minimalistic.