示例#1
0
文件: core.py 项目: cottrell/skeleton
 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)
示例#2
0
 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)
示例#3
0
 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)
示例#4
0
 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)