Click or drag to resize

FilesHelperGetFilesOfGivenTypeFromAllSubFolders(String, FileType) Method

Framework to automate tests using Selenium WebDriver
Gets the files of given type from all sub folders.

Namespace: Ocaramba.Helpers
Assembly: OcarambaLite (in OcarambaLite.dll) Version: 1.0.0+d8e789f8644d1a9b63485ad7914acf4f489f3ef9
Syntax
C#
public static ICollection<FileInfo> GetFilesOfGivenTypeFromAllSubFolders(
	string folder,
	FileType type
)
Request Example

Parameters

folder  String
The folder.
type  FileType
The type of files.

Return Value

ICollectionFileInfo
Collection of files.
Example
How to use it:
C#
var files = GetFilesOfGivenTypeFromAllSubFolders(folder, FileType.Txt);
See Also