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
Mostra file Open project: 0install/0install-win

Private Properties

Property Type Description
GetSortedDirectoryEntries System.IO.FileSystemInfo[]
HandleEntry void
HandleEntry void

Protected Methods

Method 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

Method 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 method

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

Execute() protected method

protected Execute ( ) : void
return void

HandleDirectory() protected abstract method

Handles a directory.
protected abstract HandleDirectory ( [ directory ) : void
directory [ The directory to handle.
return void

HandleEntries() protected method

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 [
return void

HandleFile() protected abstract method

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.
return void

HandleSymlink() protected abstract method

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