/** * Walks the local tree before an upload * * The tree is counted the same way the transport sees it: `scp -r` follows * symlinks and copies their targets, and stops on a broken link or a cycle. * Counting it differently would make the tool's answer diverge from what * actually went out: the file count and size would come out too low, and * the hash check would miss part of the tree. * * A broken link or a cycle is caught here, before the transfer. The transport * would notice them too, but only halfway through — part of the tree would * already be sitting on the server by then. */ /** * Relative paths of every file in the tree. * * A symlink to a file counts as a file, and a symlink to a directory is * followed — exactly what the transport will bring over. */ export declare function listTreeFiles(root: string): Promise;