rmTargetPath can be a directory, so we have to use RemoveAll() or we will fail to whiteout non-empty directories. Upstream-commit: 006e2a600ce689770ba2c49805bc4f634976f365 Component: engine