Table Of Contents

List Folder (G Dataflow)

Version:
    Last Modified: March 27, 2017

    Returns two arrays of strings listing the names of all files and folders found in the specified path.

    This node filters both arrays based upon pattern and filters the file names array based upon the specified datalog type.

    connector_pane_image
    datatype_icon

    datalog

    An input that restricts the filenames returned to datalog files containing records of the specified data type. Datalog records contain a time stamp cluster and a cluster of panel data. This input can accept any data type.

    datatype_icon

    path

    Path to the folder whose contents you want this node to return.

    If path points to a folder that does not exist, file names and folder names return empty arrays, and this node returns an error.

    datatype_icon

    error in

    Error conditions that occur before this node runs.

    The node responds to this input according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Default: No error

    datatype_icon

    pattern

    A string containing special characters that this node uses to restrict the files displayed. pattern does not restrict the directories displayed.

    The pattern matching used by this node is similar to the matching used in matching wildcards in Windows filenames.

    Character Meaning
    ? Matches any single character.
    * Matches any sequence of zero or more characters.
    ; Separates patterns, allowing you to specify multiple allowable patterns. Do not insert whitespace following this character because this node interprets whitespace literally.
    All other characters, including white space Matches the exact character.

    Default: *.*

    datatype_icon

    path out

    path unchanged.

    datatype_icon

    file names

    An array containing the names of the files found in the specified directory.

    This node does not return the names of files found in folders within the directory. This node sorts the returned file names alphabetically.

    datatype_icon

    folder names

    An array that contains the names of the folders found in the specified directory.

    This node sorts the folder names alphabetically. If no path is wired to this node, folder names contains the names of the drives on the computer.

    datatype_icon

    error out

    Error information.

    The node produces this output according to standard error behavior.

    Standard Error Behavior

    Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

    error in does not contain an error error in contains an error
    If no error occurred before the node runs, the node begins execution normally.

    If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

    If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: DAQExpress does not support FPGA devices


    Recently Viewed Topics