To automatically retrieve files from a file system, create a new fetch task by following these steps. The connector runs each fetch task automatically, based on the schedule that is configured in the configuration file.
To create a new Fetch Task
In the [FetchTasks]
section of the configuration file, specify the number of fetch tasks using the Number
parameter. If you are configuring the first fetch task, type Number=1
. If one or more fetch tasks have already been configured, increase the value of the Number
parameter by one (1). Below the Number
parameter, specify the names of the fetch tasks, starting from zero (0). For example:
[FetchTasks] Number=1 0=MyTask
Below the [FetchTasks]
section, create a new TaskName section. The name of the section must match the name of the new fetch task. For example:
[FetchTasks] Number=1 0=MyTask [MyTask]
To specify the folders that the connector checks for files, set the DirectoryPathCSVs
and DirectoryRecursive
parameters.
DirectoryPathCSVs
|
A comma-separated list of folders from which you want to retrieve files. |
DirectoryRecursive
|
A Boolean that specifies whether the connector retrieves files in sub-folders. |
[MyTask] DirectoryPathCSVs=C:\MyFiles\,D:\MyFiles DirectoryRecursive=True
Using the DirectoryPathCSVs
parameter, you can specify paths that cause the connector to retrieve files from different types of file system (for example, NT and Netware). However, Micro Focus recommends that you create separate fetch tasks for retrieving files from different types of file system. This ensures that Access Control Lists can be retrieved correctly.
PathCrawlRegex
and PathNoCrawlRegex
parameters. These parameters can be useful when the location specified by DirectoryPathCSVs
contains large folder structures that you do not want to index. For information about these parameters, refer to the File System Connector (CFS) Reference.(Optional) To limit the files that are retrieved, you can use the file selection parameters. For information about these parameters, refer to the File System Connector (CFS) Reference. A file is retrieved only if it matches all of the criteria that are set. For example:
[MyTask] DirectoryPathCSVs=C:\MyFiles\,D:\MyFiles DirectoryRecursive=True DirectoryFileMatch=*.pdf,*.doc DirectoryFileModifiedSince=2012-JUN-15 00:00:01
The connector saves or updates a data file for each completed fetch task. If you make changes to the configuration and want to reset the connector so that it retrieves all of your data again, see Reset the Connector.
|