C# Класс Axiom.FileSystem.FileSystemArchive

Specialization of the Archive class to allow reading of files from filesystem folders / directories.
Наследование: Axiom.FileSystem.Archive
Показать файл Открыть проект

Открытые методы

Метод Описание
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