ftos.files.listFolder
IMPORTANT!
Starting with v24.3.0, this is renamed from listFilesFromFolder to ftos.files.listFolder.
Starting with v24.3.0, this is renamed from listFilesFromFolder to ftos.files.listFolder.
Returns the file names for all the files stored in a known folder.
This is a business logic method for business service components.
Syntax
Copy
function ftos.files.listFolder(knownFolder: string): string[]
| Parameter | Description |
|---|---|
knownFolder
|
Name of the known folder:
|
Return Value
Returns an array of strings containing the names of the files stored in the known folder.
Examples
In this example, we store the names of all the files in the Processed folder in a variable called processedFiles.
var processedFiles = ftos.files.listFolder('Processed');