C# 클래스 Sage.DevTools.Modules.DirectoryTreeModule

Provides a module that reads directories.
The configuration element for this module has the following structure:

<mod:config> <mod:path /> <mod:recursive /> <mod:directoriesOnly /> <mod:filesOnly /> <mod:pattern /> <mod:expression /> </mod:config>

name type description path string specifies the path of the directory to read. Unless absolute, the path will be server-mapped within the current application. Required. recursive boolean If true, the path's subdirectories should be scanned recursively as well. Optional. Default is false. directoriesOnly boolean If true, the only directories will be returned. Optional. Default is false. filesOnly boolean If true, the only files will be returned. Note that if both directoriesOnly and filesOnly options are specified, only the files will be returned. Optional. Default is false. pattern string File pattern to match (e.g. *.txt). Optional. Default is '*'. expression string The regular expression string that the files and/or folders should match to be returned. Optional.
상속: IModule
파일 보기 프로젝트 열기: igorfrance/sage

공개 메소드들

메소드 설명
ProcessElement ( XmlElement moduleElement, ViewConfiguration configuration ) : ModuleResult

비공개 메소드들

메소드 설명
GetDirectoryPath ( XmlElement moduleElement, SageContext context ) : string
ScanDirectory ( string path, SageContext context ) : XmlElement

메소드 상세

ProcessElement() 공개 메소드

public ProcessElement ( XmlElement moduleElement, ViewConfiguration configuration ) : ModuleResult
moduleElement System.Xml.XmlElement
configuration Sage.Views.ViewConfiguration
리턴 Sage.Modules.ModuleResult