C# Class Axiom.FileSystem.FileSystemArchive

Specialization of the Archive class to allow reading of files from filesystem folders / directories.
Inheritance: Axiom.FileSystem.Archive
Afficher le fichier Open project: WolfgangSt/axiom

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Create() public méthode

public Create ( string filename, bool overwrite ) : Stream
filename string
overwrite bool
Résultat Stream

Exists() public méthode

public Exists ( string fileName ) : bool
fileName string
Résultat bool

FileSystemArchive() public méthode

public FileSystemArchive ( string name, string archType ) : System
name string
archType string
Résultat System

Find() public méthode

public Find ( string pattern, bool recursive ) : List
pattern string
recursive bool
Résultat List

FindFileInfo() public méthode

public FindFileInfo ( string pattern, bool recursive ) : FileInfoList
pattern string
recursive bool
Résultat FileInfoList

List() public méthode

public List ( bool recursive ) : List
recursive bool
Résultat List

ListFileInfo() public méthode

public ListFileInfo ( bool recursive ) : FileInfoList
recursive bool
Résultat FileInfoList

Load() public méthode

public Load ( ) : void
Résultat void

Open() public méthode

public Open ( string filename, bool readOnly ) : Stream
filename string
readOnly bool
Résultat System.IO.Stream

SafeDirectoryChange() protected méthode

protected SafeDirectoryChange ( string directory, System.Action action ) : void
directory string
action System.Action
Résultat void

Unload() public méthode

public Unload ( ) : void
Résultat void

changeDirectory() protected méthode

Utility method to change the current directory
protected changeDirectory ( string dir ) : void
dir string
Résultat void

findFiles() protected méthode

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
Résultat void

findFiles() protected méthode

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
Résultat void