|
FilePathGetFileList Method
|
Gets a list of files under the specified path. Search wildcard pattern (c:\Data\*.dat) can be used for
including only the files matching the pattern or path wildcard pattern (c:\Data\*\*.dat) to indicate the
inclusion of files under all subdirectories in the list.
Namespace: GSF.IOAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
Syntaxpublic static string[] GetFileList(
string path,
Action<Exception> exceptionHandler = null
)
Public Shared Function GetFileList (
path As String,
Optional exceptionHandler As Action(Of Exception) = Nothing
) As String()
public:
static array<String^>^ GetFileList(
String^ path,
Action<Exception^>^ exceptionHandler = nullptr
)
static member GetFileList :
path : string *
?exceptionHandler : Action<Exception>
(* Defaults:
let _exceptionHandler = defaultArg exceptionHandler null
*)
-> string[]
GSF.IO.FilePath.GetFileList = function(path, exceptionHandler);
View SourceParameters
- path String
- The path for which a list of files is to be returned.
- exceptionHandler ActionException (Optional)
- Handles exceptions thrown during file enumeration.
Return Value
StringA list of files under the given path.
See Also