File Datasources

../../../../_images/datasource.svg

Create datasources from filenames in a directory that matches the pattern.

Documentation

Search the selected directory for filenames matching the search pattern and output their absolute paths as datasources on the output port.

The pattern for matching filenames uses shell style wildcards (glob) with special character: ? for matching any single character, and * for matching any characters. For more details, see fnmatch.

When recursive search is enabled, all subdirectories of the selected directory will also be searched.

The output can be configured to include only files, only directories or both files and directories.

Definition

Output ports

port1 [datasource]

Datasources with file paths

Configuration

Directory (directory)

Directory where to search for files.

Include (include_types)

File types to include in the output

Recursive (recursive)

Recursive search in subdirectories.

Search pattern (search_pattern)

Pattern for matching filenames.

Examples

Implementation

class node_file_datasource.FileDatasourceMultiple[source]