Documentation
¶
Overview ¶
Package transfer moves a subtree in one direction between a local root and an endpoint root. It is what `agyn sandbox cp` drives.
A copy is not a relationship: there is no ancestor, no watching, and no conflict handling, because there are no two sides to keep in agreement over time. What it shares with sync is the staged, atomic write — content lands whole or not at all.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Discard io.Writer = io.Discard
Discard is an io.Writer sink used when a body must be drained but not kept.
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct {
Files int
Directories int
Bytes int64
// Skipped names entries a copy cannot carry — sockets, devices — reported
// rather than silently dropped.
Skipped []string
}
Report is what a copy did, for the caller to print.