edk2toollib/windows/capsule/inf_generator2.py
def AddFile(self, Filename: str) -> None:
        '''Adds a new file to this InfSourceFiles object

        Filename - Filename (basename only) of the file to be added. (e.g. "Firmware1234.bin")
        '''
        # test here for invalid chars. For filenames, this permits a-z, A-Z, 0-9, _, -, and . characters.
        if not (re.compile(r'[\.\w-]*$')).match(Filename):
            raise ValueError("Filename has invalid chars.")

        if (Filename not in self.Files):
            self.Files.append(Filename)
Adds a new file to this InfSourceFiles object

        Filename - Filename (basename only) of the file to be added. (e.g. "Firmware1234.bin")
        
Adds a new file to this InfSourceFiles object
Filename - Filename (basename only) of the file to be added.
Adds a new file to this InfSourceFiles object Filename - Filename ( basename only ) of the file to be added .
def AddFile(self, Filename: str) -> None:
        if not (re.compile(r'[\.\w-]*$')).match(Filename):
            raise ValueError("Filename has invalid chars.")
        if (Filename not in self.Files):
            self.Files.append(Filename)
def AddFile ( self , Filename : str ) -> None : if not ( re . compile ( r'[\.\w-]*$' ) ) . match ( Filename ) : raise ValueError ( "Filename has invalid chars." ) if ( Filename not in self . Files ) : self . Files . append ( Filename )
Adds a new file to this InfSourceFiles object
Filename - Filename (basename only) of the file to be added.
Adds a new file to this InfSourceFiles object Filename - Filename ( basename only ) of the file to be added .
'''Adds a new file to this InfSourceFiles object

        Filename - Filename (basename only) of the file to be added. (e.g. "Firmware1234.bin")
        ''' # test here for invalid chars. For filenames, this permits a-z, A-Z, 0-9, _, -, and . characters.
self
Filename
str