コード例 #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
ファイル: core.py プロジェクト: NorthIsUp/skeleton
 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)