mirror of
https://github.com/restic/restic.git
synced 2026-11-21 13:02:42 +00:00
When loading or iterating a directory tree failed, traverseTreeInner returned a nil file list together with the error. If the error handler ignored the error, the caller still called leaveDir with that nil list, and restore --delete removed every existing entry of the directory in the target, even though the expected content was simply unknown. Force disable deletion in that case, the same way it is already done for invalid node names. Signed-off-by: Dean Chen <862469039@qq.com>