C# 클래스 ZeroInstall.Store.Implementations.DirectoryWalkTask

Common base class for tasks that walk an entire directory tree using template methods.
상속: NanoByte.Common.Tasks.TaskBase
파일 보기 프로젝트 열기: 0install/0install-win

Private Properties

프로퍼티 타입 설명
GetSortedDirectoryEntries System.IO.FileSystemInfo[]
HandleEntry void
HandleEntry void

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

DirectoryWalkTask() 보호된 메소드

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

Execute() 보호된 메소드

protected Execute ( ) : void
리턴 void

HandleDirectory() 보호된 추상적인 메소드

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

HandleEntries() 보호된 메소드

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 [
리턴 void

HandleFile() 보호된 추상적인 메소드

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.
리턴 void

HandleSymlink() 보호된 추상적인 메소드

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