C# Class ZeroInstall.Store.Implementations.DirectoryWalkTask

Common base class for tasks that walk an entire directory tree using template methods.
Inheritance: NanoByte.Common.Tasks.TaskBase
Afficher le fichier Open project: 0install/0install-win

Private Properties

Свойство Type Description
GetSortedDirectoryEntries System.IO.FileSystemInfo[]
HandleEntry void
HandleEntry void

Méthodes protégées

Méthode Description
DirectoryWalkTask ( [ sourceDirectory ) : System

Creates a new directory walking task.

Execute ( ) : void
HandleDirectory ( [ directory ) : void

Handles a directory.

HandleEntries ( [ entries ) : void

Iterates over all entries and calls handler methods for them.

HandleFile ( [ file, bool executable = false ) : void

Handles a file.

HandleSymlink ( [ symlink, [ data ) : void

Handles a symlink.

Private Methods

Méthode Description
GetSortedDirectoryEntries ( [ path ) : System.IO.FileSystemInfo[]

Creates a recursive list of all filesystem entries in a certain directory sorted in C order.

HandleEntry ( [ entry ) : void

Handles a file system entry the OS reports as a directory.

HandleEntry ( [ entry, [ externalXbits, [ externalSymlinks ) : void

Handles a file system entry the OS reports as a file.

Method Details

DirectoryWalkTask() protected méthode

Creates a new directory walking task.
protected DirectoryWalkTask ( [ sourceDirectory ) : System
sourceDirectory [ The path of the directory to walk.
Résultat System

Execute() protected méthode

protected Execute ( ) : void
Résultat void

HandleDirectory() protected abstract méthode

Handles a directory.
protected abstract HandleDirectory ( [ directory ) : void
directory [ The directory to handle.
Résultat void

HandleEntries() protected méthode

Iterates over all entries and calls handler methods for them.
A file has illegal properties (e.g. is a device file, has line breaks in the filename, etc.). There was an error reading a file. You have insufficient rights to read a file.
protected HandleEntries ( [ entries ) : void
entries [
Résultat void

HandleFile() protected abstract méthode

Handles a file.
protected abstract HandleFile ( [ file, bool executable = false ) : void
file [ The file to handle.
executable bool true indicates that the file is marked as executable.
Résultat void

HandleSymlink() protected abstract méthode

Handles a symlink.
protected abstract HandleSymlink ( [ symlink, [ data ) : void
symlink [ The symlink to handle.
data [ The encoded target of the symlink.
Résultat void