pub fn scan(root: &Path) -> Result<BTreeMap<RelPath, Local>>
The files and directories of a folder by path; links, unfinished downloads and other kinds are left out.