Do a mode check on the os.rename()'d file.
Do a mode check on the os.rename()'d file.

When copying into place, run the same stat() and mode check as for when
checking a pre-existing file. Seems os.rename() doesn't respect the
modes of the from- file.

andrelucas/hsync