====== List Filenames ====== ===== Description ===== {{:submodels:submodel16.png?nolink|Submodel}} List the filenames in the given folder (and maybe its sub-folders) that match the given file pattern. The resulting filenames include their corresponding file paths. ===== Inputs ===== ^ Name ^ Type ^ Description ^ | Folder | [[folder|Folder]] |Folder where the file are located. | | File Pattern | [[string_type|String Type]] | Patterns of files that will be returned. The pattern can include all wildcards supported by the OS shell. Ex: *.*, *.csv, my_image[0-9].tif, etc. | ===== Advanced Inputs Ports ===== ^ Name ^ Type ^ Description ^ | Search Sub Folders Recursively | [[boolean_value_type|Boolean Value Type]] | If true, also search for files in the sub-folders of the given folder recursively. Otherwise, the result only includes files from the given folder. | ===== Outputs ===== ^ Name ^ Type ^ Description ^ | Files | [[table_type|Table Type]] | The list of filename (and their corresponding paths) found in the given folder that match the given extension. | ===== Group ===== [[Functor List#List Filenames|List Filenames]] ===== Notes ===== The functionality provide by this submodel is similar to the one provided by the "List Filenames in Folder" submodel, except that this implementation used Python internally. However, this version is simpler to use. ===== Internal Name ===== ListFilenames