FileType
Deprecated. File type for file filtering. Can be used to filter collections of labels for certain file types.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
|
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
File
s that match the FileType.
Parameters
Parameter | Description |
---|---|
files
|
The files to match. This parameter must be a |