Salesforce

FileListGet (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

FileListGet (Magic xpa 3.x)

Returns a list of the file names in a directory based on a set of file-name filters.

Syntax:

FileListGet(directory name, filter list, sub dir search)

Parameters:

directory name: A string representing a directory.
The string can contain logical names.

filter list: A string representing a list of file filters, including wildcard characters separated by the ‘|’ character. For example: '*.xml|*.xsd'. If the value of this argument is an empty string, all files in the directory will be listed.

sub dir search: A boolean parameter. True means that the directory and all subdirectories are searched. False means that only the specified directory is searched.

Returns:

A vector that contains Unicode strings. Each cell has a string that is the file's name and relative path, for example: 'dir1\po.xml'. If no files are found, a Null is returned.

Example:

FileListGet('c:\temp','*.xml|*.xsd','TRUE'LOG) returns a vector containing Unicode strings. Each entry in the vector contains a file name that is found in the 'C:\temp\directory' and its subdirectories, for example: 'dir1\po.xml'.

See also:

How Do I Retrieve the Content of a File Directory?

The Online Samples project (program EL18)

Reference
Attachment 
Attachment