Functions Language

FileList

The FileList() function returns a list of files contained in a specified directory.

Related functions: FileName, FilePath


Syntax:

FileList(FilePath, [Recursive search])
  • In the Quintessence Editor (Studio) using Python language, use: Qx.FileList()
 See parameter descriptions

FilePathA valid directory path.
The * character may be used as a wildcard mask.
Recursive search
(optional)
When set to TRUE, the function performs a recursive search through all subfolders.

Remarks:

  • Default values:
    • Recursive search: FALSE

Examples:

The examples provided below are based on fictitious data for illustrative purposes only.

> Example 1: Find all .txt files on the C drive


Formula:

return := FileList("C:\*.txt", TRUE);

Result:

C:\File1.txt
C:\NewFiles\File2.txt