folder-transfer v0.16.0
Adds an embeddable library so you can drive transfers from your own code (no spawning the CLI).
PowerShell scripts unchanged.
Artifacts
folder-transfer-0.16.0.zip— the PowerShell sender (reference implementation).ft-0.16.0-x86_64-windows.zip—ft.exe+ft.dll(+ft.dll.lib), the C header
ft.h, and a .NET bindingFolderTransfer.cs, plusserver.example.json.ft-0.16.0-x86_64-linux.tar.gz—ft(static musl CLI) +libft.so(glibc, for embedding),
ft.h,server.example.json.
New: C-ABI library (ft.dll / libft.so)
Call file transfer straight from .NET (P/Invoke), C, or C++:
ft_get(server, port, token, fingerprint, to, ignore, streams)— pull a folder.ft_serve_start(folder, port, streams, ignore, no_compress, once, out_token, …, out_fp, …)—
serve in the background; the token + certificate fingerprint come back immediately to hand to the
receiver.ft_serve_wait(handle)blocks until it finishes.ft_last_error(buf, len)— last error for the current thread.
A ready C# wrapper (FolderTransfer.cs) is included:
var srv = new FolderTransfer.Server(@"D:\data", 8722); // returns srv.Token, srv.Fingerprint
FolderTransfer.Get("10.0.0.1", 8722, token, fingerprint, @"E:\incoming"); // on the receiver
srv.Wait();Everything from 0.15.x (no subcommand, server-pushed config, interactive destination, live
progress, read-timeout/keepalives) is included. CLI behaviour is unchanged.