def _set_mode(self, path, like): """ Set mode of `path` with the mode of `like`. """ _LOG.info("Set mode of %r to '%o'", path, get_file_mode(like)) if not self.run_dry: shutil.copymode(like, path)
def _set_mode(self, dst_path, like): """ Set mode of `dst_path` with the mode of `like`. """ logger.info("Set mode of %r to '%o'", dst_path, get_file_mode(like)) if not self.run_dry: shutil.copymode(like, dst_path)