mirror of
https://github.com/restic/restic.git
synced 2025-05-02 11:10:47 +00:00

The archiver first called the Select function for a path before checking whether the Lstat on that path actually worked. The RejectFuncs in exclude.go worked around this by checking whether they received a nil os.FileInfo. Checking first is more obvious and requires less code.