Before this would have the uid:gid of root in the uidmap space
The link is now created in the staging area first to make the change atomic,
so that the wrong uid:gid pair is never seen in the output directory
if not state.config.output_dir.joinpath(state.config.output).exists():
state.config.output_dir.joinpath(state.config.output).symlink_to(state.config.output_with_compression)
+ os.chown(state.config.output_dir.joinpath(state.config.output), uid, gid, follow_symlinks=False)
print_output_size(config.output_dir / config.output)