예제 #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)