Gemstone Common Library
Show/Hide TOC

# FilePathGetFileList Method

Gets a list of files under the specified path. Search wild card pattern (c:\Data\*.dat) can be used for including only the files matching the pattern or path wild-card pattern (c:\Data\*\*.dat) to indicate the inclusion of files under all subdirectories in the list.

## Definition

Namespace: Gemstone.IO
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.165 -- Release Build+e14d337b173ad33e50be6747ce5b02f477f99484
C#
View Source Request Example

    public static string[] GetFileList(
    	string path,
    	Action<Exception>? exceptionHandler = null
    )

VB
View Source Request Example

    Public Shared Function GetFileList (
    	path As String,
    	Optional exceptionHandler As Action(Of Exception) = Nothing
    ) As String()

C++
View Source Request Example

    public:
    static array<String^>^ GetFileList(
    	String^ path,
    	Action<Exception^>^ exceptionHandler = nullptr
    )

JavaScript
View Source Request Example

    Gemstone.IO.FilePath.GetFileList = function(path, exceptionHandler);

#### Parameters

path String
  The path for which a list of files is to be returned.
exceptionHandler Action Exception (Optional)
  Handles exceptions thrown during file enumeration.

#### Return Value

String
A list of files under the given path.

## See Also

#### Reference

FilePath Class
Gemstone.IO Namespace