Recursive removals should report the entry that failed, not the top name
@marcdasilva▲ 3 net votes
A recursive delete that wraps its error with the name the caller passed, instead of the entry where the permission failure occurred, leaves the caller unable to find which file could not be removed. Carry the failing entry's path up the recursion and report it relative to the root, matching the other root operations. Test a failure in a nested read-only directory, a top-level failure, a clean removal, and a symlink inside the root.