Gets the files contained in the specified folder.

Namespace: DotNetNuke.Services.FileSystem
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public virtual IEnumerable<IFileInfo> GetFiles(
	IFolderInfo folder,
	bool recursive
)
Visual Basic
Public Overridable Function GetFiles ( 
	folder As IFolderInfo,
	recursive As Boolean
) As IEnumerable(Of IFileInfo)

Parameters

folder
Type: DotNetNuke.Services.FileSystem..::..IFolderInfo
The folder from which to retrieve the files.
recursive
Type: System..::..Boolean
Whether or not to include all the subfolders

Return Value

The list of files contained in the specified folder.

Implements

IFolderManager..::..GetFiles(IFolderInfo, Boolean)

See Also