FileType

Deprecated. File type for file filtering. Can be used to filter collections of labels for certain file types.

Members

FileType

FileType FileType(types=[])

Deprecated. Creates a file filter from a list of strings. For example, to match files ending with .cc or .cpp, use:
FileType([".cc", ".cpp"])

Parameters

Parameter Description
types

sequence of strings

a list of the accepted file extensions.

filter

list FileType.filter(files)

Returns a list created from the elements of the parameter containing all the Files that match the FileType.

Parameters

Parameter Description
files

depset; or sequence

The files to match. This parameter must be a depset or a list.