Search Results for

    Show / Hide Table of Contents

    List Files

    This task will output a list of files contained within a folder, and optionally it's sub-folders. The result can be saved to a file in XML format, or can be picked up by the next task in the workflow (by selecting the 'Output from the previous task' option in the next task's settings).

    Settings

    Folder

    Optional
    The directory containing the files to list. Use a dot to list files in the workflow's working directory, or the path to the folder.

    Output File

    Optional
    The XML file to save the list of files to. If left blank, the task will return a Zynk object containing the list of files. This can be used accessed by the next task in the workflow, by selecting the 'Output from the previous task' option for one of the task's settings.

    Recursive

    Required
    Set to true if you want the task to list all files in sub-directories, or false to only list files in the directory specified.

    Search Pattern

    Optional
    Allows you to specify the type of files to be processed. For example, *.xml will only list files with the .xml extension. This should be set to Data Type: Text or script

    Zynk Settings

    See Common Task Settings

    Examples

    Sample output file, when listing files in the workflow's data directory, using the search pattern *.xml:

    <?xml version="1.0"?>
    <ArrayOfString>
      <string>C:\ProgramData\Zynk Software\Zynk\2.0\Data\Workflow\orders_ebay.xml</string>
      <string>C:\ProgramData\Zynk Software\Zynk\2.0\Data\Workflow\orders_zynk.xml</string>
      <string>C:\ProgramData\Zynk Software\Zynk\2.0\Data\Workflow\orders_zynk_fail.xml</string>
      <string>C:\ProgramData\Zynk Software\Zynk\2.0\Data\Workflow\orders_zynk_success.xml</string>
    </ArrayOfString>
    
    In This Article
    Zynk Documentation © 2021, Zynk Software Limited. Zynk is a registered trademark of Zynk Software Limited