Skip to content

Also add parent dirs when generating diffs

To be a well-behaved tar file, all directories leading up to a file should also be present in the tarball. Add them in the processing of each changed file. This should make sure the 'mtime' of the directory is correct in face of incorrect clock in the recovery environment.

Besides, if a file is changed, the parent dir should also be considered changed as well.

Merge request reports