third_party/blink/tools/blinkpy/w3c/wpt_metadata_builder.py
def _copy_checked_in_metadata(self):
        """Copies checked-in metadata files to the metadata output directory."""
        for filename in self.fs.files_under(self.checked_in_metadata_dir):
            # We match any .ini files in the path. This will find .ini files
            # other than just metadata (such as tox.ini), but that is ok
            # since wptrunner will just ignore those.
            if not fnmatch.fnmatch(filename, "*.ini"):
                continue

            # Found a checked-in .ini file. Copy it to the metadata output
            # directory in the same sub-path as where it is checked in.
            # So /checked/in/a/b/c.ini goes to /metadata/out/a/b/c.ini
            output_path = filename.replace(self.checked_in_metadata_dir,
                                           self.metadata_output_dir)
            if not self.fs.exists(self.fs.dirname(output_path)):
                self.fs.maybe_make_directory(self.fs.dirname(output_path))
            _log.debug("Copying %s to %s" % (filename, output_path))
            # Keep track that we copied this file. We may need to purge it if
            # another status overwrites it.
            self.checked_in_metadata_copied.add(output_path)
            self.fs.copyfile(filename, output_path)
Copies checked-in metadata files to the metadata output directory.
Copies checked-in metadata files to the metadata output directory.
Copies checked - in metadata files to the metadata output directory .
def _copy_checked_in_metadata(self):
        for filename in self.fs.files_under(self.checked_in_metadata_dir):
            if not fnmatch.fnmatch(filename, "*.ini"):
                continue
            output_path = filename.replace(self.checked_in_metadata_dir,
                                           self.metadata_output_dir)
            if not self.fs.exists(self.fs.dirname(output_path)):
                self.fs.maybe_make_directory(self.fs.dirname(output_path))
            _log.debug("Copying %s to %s" % (filename, output_path))
            self.checked_in_metadata_copied.add(output_path)
            self.fs.copyfile(filename, output_path)
def _copy_checked_in_metadata ( self ) : for filename in self . fs . files_under ( self . checked_in_metadata_dir ) : if not fnmatch . fnmatch ( filename , "*.ini" ) : continue output_path = filename . replace ( self . checked_in_metadata_dir , self . metadata_output_dir ) if not self . fs . exists ( self . fs . dirname ( output_path ) ) : self . fs . maybe_make_directory ( self . fs . dirname ( output_path ) ) _log . debug ( "Copying %s to %s" % ( filename , output_path ) ) self . checked_in_metadata_copied . add ( output_path ) self . fs . copyfile ( filename , output_path )
Copies checked-in metadata files to the metadata output directory.
Copies checked - in metadata files to the metadata output directory .
"""Copies checked-in metadata files to the metadata output directory.""" # We match any .ini files in the path. This will find .ini files # other than just metadata (such as tox.ini), but that is ok # since wptrunner will just ignore those. # Found a checked-in .ini file. Copy it to the metadata output # directory in the same sub-path as where it is checked in. # So /checked/in/a/b/c.ini goes to /metadata/out/a/b/c.ini # Keep track that we copied this file. We may need to purge it if # another status overwrites it.
self