ES2.GetFiles

public static string[] GetFiles(string folder, ES2Settings settings=null)

Parameters

folder The relative or absolute folder to look for files in.

settings

Optional. A user-created ES2Settings object containing options not specified in path.

Returns

string[] The list of files within this folder.

Description

Returns the filenames of the files contained within the specified folder.

Note: This can be a relative or absolute folder.

C#

JS


public static string[] GetFiles(string folder, string extension)

Parameters

folder The relative or absolute folder to look for files in.

extension

If specified, only files with this extension will be returned.

Returns

string[] The list of files within this folder with the given extension.

Description

Returns the filenames of the files contained within the specified folder with the specified extension.

The extension should be in the format *.txt. The extension may also be a search pattern as described here.

Note: Path can be a relative or absolute folder.

C#

JS