edk2toollib/uefi/edk2/guid_list.py
def guidlist_from_filesystem(folder: str, ignore_lines: list = list()) -> list:
        """ Create a list of GuidListEntry from files found in the file system

        folder: path string to root folder to walk
        ignore_lines: list of gitignore syntax to ignore files and folders
        """
        guids = []
        ignore = parse_gitignore_lines(ignore_lines, os.path.join(folder, "nofile.txt"), folder)
        for root, dirs, files in os.walk(folder):
            for d in dirs[:]:
                fullpath = os.path.join(root, d)
                if(ignore(fullpath)):
                    logging.debug(f"Ignore folder: {fullpath}")
                    dirs.remove(d)

            for name in files:
                fullpath = os.path.join(root, name)
                if(ignore(fullpath)):
                    logging.debug(f"Ignore file: {fullpath}")
                    continue

                new_guids = GuidList.parse_guids_from_edk2_file(fullpath)
                guids.extend(new_guids)
        return guids
 Create a list of GuidListEntry from files found in the file system

        folder: path string to root folder to walk
        ignore_lines: list of gitignore syntax to ignore files and folders
        
Create a list of GuidListEntry from files found in the file system
folder: path string to root folder to walk
ignore_lines: list of gitignore syntax to ignore files and folders
Create a list of GuidListEntry from files found in the file system folder : path string to root folder to walk ignore_lines : list of gitignore syntax to ignore files and folders
def guidlist_from_filesystem(folder: str, ignore_lines: list = list()) -> list:
        guids = []
        ignore = parse_gitignore_lines(ignore_lines, os.path.join(folder, "nofile.txt"), folder)
        for root, dirs, files in os.walk(folder):
            for d in dirs[:]:
                fullpath = os.path.join(root, d)
                if(ignore(fullpath)):
                    logging.debug(f"Ignore folder: {fullpath}")
                    dirs.remove(d)
            for name in files:
                fullpath = os.path.join(root, name)
                if(ignore(fullpath)):
                    logging.debug(f"Ignore file: {fullpath}")
                    continue
                new_guids = GuidList.parse_guids_from_edk2_file(fullpath)
                guids.extend(new_guids)
        return guids
def guidlist_from_filesystem ( folder : str , ignore_lines : list = list ( ) ) -> list : guids = [ ] ignore = parse_gitignore_lines ( ignore_lines , os . path . join ( folder , "nofile.txt" ) , folder ) for root , dirs , files in os . walk ( folder ) : for d in dirs [ : ] : fullpath = os . path . join ( root , d ) if ( ignore ( fullpath ) ) : logging . debug ( f"Ignore folder: {fullpath}" ) dirs . remove ( d ) for name in files : fullpath = os . path . join ( root , name ) if ( ignore ( fullpath ) ) : logging . debug ( f"Ignore file: {fullpath}" ) continue new_guids = GuidList . parse_guids_from_edk2_file ( fullpath ) guids . extend ( new_guids ) return guids
Create a list of GuidListEntry from files found in the file system
folder: path string to root folder to walk
ignore_lines: list of gitignore syntax to ignore files and folders
Create a list of GuidListEntry from files found in the file system folder : path string to root folder to walk ignore_lines : list of gitignore syntax to ignore files and folders
""" Create a list of GuidListEntry from files found in the file system

        folder: path string to root folder to walk
        ignore_lines: list of gitignore syntax to ignore files and folders
        """
folder
str
ignore_lines
list