コード例 #1
0
ファイル: build_base.py プロジェクト: ahouseholder/certfuzz
    def _copy_platform(self):
        # copy platform-specific content
        for f in os.listdir(self.platform_path):
            f_src = os.path.join(self.platform_path, f)

            # blacklist files and dirs by name
            # these files will not be copied
            if f in self._blacklist:
                logger.info("Skipping path (blacklisted) %s", f_src)
                continue

            f_dst = os.path.join(self.target_path, f)
            if os.path.isdir(f_src):
                copydir(f_src, f_dst)
            elif os.path.isfile(f_src):
                copyfile(f_src, f_dst)
            else:
                logger.warning("Not sure what to do with %s", f_src)
コード例 #2
0
ファイル: build_base.py プロジェクト: wflk/certfuzz
    def _copy_platform(self):
        # copy platform-specific content
        for f in os.listdir(self.platform_path):
            f_src = os.path.join(self.platform_path, f)

            # blacklist files and dirs by name
            # these files will not be copied
            if f in self._blacklist:
                logger.info('Skipping path (blacklisted) %s', f_src)
                continue

            f_dst = os.path.join(self.target_path, f)
            if os.path.isdir(f_src):
                copydir(f_src, f_dst)
            elif os.path.isfile(f_src):
                copyfile(f_src, f_dst)
            else:
                logger.warning("Not sure what to do with %s", f_src)
コード例 #3
0
ファイル: build_base.py プロジェクト: ahouseholder/certfuzz
 def _copy_common_dirs(self):
     # copy other dirs
     for d in self._common_dirs:
         d_src = os.path.join(self.src_path, d)
         d_dst = os.path.join(self.target_path, d)
         copydir(d_src, d_dst)
コード例 #4
0
ファイル: build_base.py プロジェクト: wflk/certfuzz
 def _copy_common_dirs(self):
     # copy other dirs
     for d in self._common_dirs:
         d_src = os.path.join(self.src_path, d)
         d_dst = os.path.join(self.target_path, d)
         copydir(d_src, d_dst)