Exemplo n.º 1
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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)