C# 클래스 Axiom.FileSystem.FileSystemArchive

Specialization of the Archive class to allow reading of files from filesystem folders / directories.
상속: Axiom.FileSystem.Archive
파일 보기 프로젝트 열기: WolfgangSt/axiom

공개 메소드들

메소드 설명
Create ( string filename, bool overwrite ) : Stream
Exists ( string fileName ) : bool
FileSystemArchive ( string name, string archType ) : System
Find ( string pattern, bool recursive ) : List
FindFileInfo ( string pattern, bool recursive ) : FileInfoList
List ( bool recursive ) : List
ListFileInfo ( bool recursive ) : FileInfoList
Load ( ) : void
Open ( string filename, bool readOnly ) : Stream
Unload ( ) : void

보호된 메소드들

메소드 설명
SafeDirectoryChange ( string directory, System.Action action ) : void
changeDirectory ( string dir ) : void

Utility method to change the current directory

findFiles ( string pattern, bool recursive, List simpleList, FileInfoList detailList ) : void

Utility method to retrieve all files in a directory matching pattern.

findFiles ( string pattern, bool recursive, List simpleList, FileInfoList detailList, string currentDir ) : void

비공개 메소드들

메소드 설명
getFilesRecursively ( string dir, string pattern ) : string[]

Returns the names of all files in the specified directory that match the specified search pattern, performing a recursive search

popDirectory ( ) : void

Utility method to pop a previous directory off the stack and change to it

pushDirectory ( string dir ) : void

Utility method to change directory and push the current directory onto a stack

메소드 상세

Create() 공개 메소드

public Create ( string filename, bool overwrite ) : Stream
filename string
overwrite bool
리턴 Stream

Exists() 공개 메소드

public Exists ( string fileName ) : bool
fileName string
리턴 bool

FileSystemArchive() 공개 메소드

public FileSystemArchive ( string name, string archType ) : System
name string
archType string
리턴 System

Find() 공개 메소드

public Find ( string pattern, bool recursive ) : List
pattern string
recursive bool
리턴 List

FindFileInfo() 공개 메소드

public FindFileInfo ( string pattern, bool recursive ) : FileInfoList
pattern string
recursive bool
리턴 FileInfoList

List() 공개 메소드

public List ( bool recursive ) : List
recursive bool
리턴 List

ListFileInfo() 공개 메소드

public ListFileInfo ( bool recursive ) : FileInfoList
recursive bool
리턴 FileInfoList

Load() 공개 메소드

public Load ( ) : void
리턴 void

Open() 공개 메소드

public Open ( string filename, bool readOnly ) : Stream
filename string
readOnly bool
리턴 System.IO.Stream

SafeDirectoryChange() 보호된 메소드

protected SafeDirectoryChange ( string directory, System.Action action ) : void
directory string
action System.Action
리턴 void

Unload() 공개 메소드

public Unload ( ) : void
리턴 void

changeDirectory() 보호된 메소드

Utility method to change the current directory
protected changeDirectory ( string dir ) : void
dir string
리턴 void

findFiles() 보호된 메소드

Utility method to retrieve all files in a directory matching pattern.
protected findFiles ( string pattern, bool recursive, List simpleList, FileInfoList detailList ) : void
pattern string File pattern
recursive bool Whether to cascade down directories
simpleList List Populated if retrieving a simple list
detailList FileInfoList Populated if retrieving a detailed list
리턴 void

findFiles() 보호된 메소드

protected findFiles ( string pattern, bool recursive, List simpleList, FileInfoList detailList, string currentDir ) : void
pattern string
recursive bool
simpleList List
detailList FileInfoList
currentDir string The current directory relative to the base of the archive, for file naming
리턴 void