8.18.12015-07-23

Folder Listing

Folder Listing input tasks list the files present in a selected folder and gives you the option to use filename masks, to sort files by name or date, and to list the files present in the selected folder’s subfolders. The lists it generates are in XML format.

Input

Folder Listing captures nothing, however it does read the input folders (and, if selected, subfolders) and gathers information about each file in that folder.

Processing

Folder Listing loops through the files and, for each file, generates an XML node with information about the file.

Output

The output is an XML file containing information about each file. If the Sub-directories option was checked, the structure of the XML also contains the folder structure as it is present on the drive.

Here is a sample of the XML that is generated:

<?xml version="1.0" encoding="windows-1252"?>
<files count="3" filemask="*.*">
    <folder>C:\Samples\<file>
            <filename>invoice.pdf</filename>
            <path>C:\Samples\</path>
            <time>2012/06/01 16:14:40</time>
            <size>81452</size>
        </file>
        <file>
            <filename>test1.pdf</filename>
            <path>C:\Samples\</path>
            <time>2013/01/17 09:13:50</time>
            <size>20197</size>
        </file>
    </folder>
    <folder>C:\Samples\manuals\<file>
            <filename>usermanual.pdf</filename>
            <path>C:\Samples\manuals\</path>
            <time>1999/10/06 09:52:04</time>
            <size>644037</size>
        </file>
    </folder>
</files>

Note that the <time> tag is independent of the OS locale, language or settings. The format is always YYYY/MM/DD 23:59:59.

Directory Listing input task property is as follows:

General Tab

"Other" Tab

Job Information definitions

On Error Tab

By default, any action task, branch, splitter or condition that generates an error will simply be ignored, and the task just under it (not within a branch) will be given control of the job file without any modification. Any initial input task that generates an error will stop the process from running as a whole, and output tasks will not generate output. The On Error tab can be used to overwrite the default behaviors.

If storing the message or ID, if they are store in a jobinfo they will be available in any error handling process where errors are being forwarded. In all cases, if your process continues after the error, the contents of the variables selected in this window will be available for the rest of your process, or whenever they are overwritten.

Common Errors

Though some error messages are specific to a task in particular, others may apply to any and all tasks because they are related more to the system than to PlanetPress itself. Some examples would be W3813, W3830, W3991, W4005. These correspond to issues such as not having any space to write files, permission errors on folders or files, etc.

Comments Tab

The Comments tab, added in PlanetPress Suite 7.5, is common to all tasks. It contains a single text area (Task comments) that lets you write comments about the task. These comments are saved when the dialog is closed with the OK button, and are displayed in The Task Comments Pane.