C# Class XenAdmin.Actions.ZipStatusReportAction

Inheritance: XenAdmin.Actions.AsyncAction
显示文件 Open project: xenserver/xenadmin Class Usage Examples

Public Methods

Method Description
RecomputeCanCancel ( ) : void
SanitizeTarPathMember ( string member ) : string
ZipStatusReportAction ( string tempFolder, string destFile ) : System

Protected Methods

Method Description
CancelRelatedTask ( ) : void
Run ( ) : void

Private Methods

Method Description
CleanupFiles ( string extractTempDir ) : void
CopyStream ( Stream inputStream, Stream outputStream, long bytesToCopy, byte buf ) : void

Copies the specified number of bytes from one stream to another via the provided buffer.

DictionaryContainsIgnoringCase ( string>.Dictionary dict, string value ) : bool
IsCharExcluded ( char c ) : bool
SanitizeTarName ( string path, string>.Dictionary usedNames ) : string

Maps file/directory names that are illegal under Windows to 'sanitized' versions. The usedNames parameter ensures this is done consistently within a directory tree. The dictionary is used by SanitizeTarName() to ensure names are consistently sanitized. e.g.: dir1: -> dir1_ dir1? -> dir1_ (1) dir1_ -> dir1_ (2) dir1:/file -> dir1_/file dir1?/file -> dir1_ (1)/file Pass the same dictionary to each invocation to get unique outputs within the same tree.

ZipToOutputFile ( string folderToZip ) : void

Method Details

CancelRelatedTask() protected method

protected CancelRelatedTask ( ) : void
return void

RecomputeCanCancel() public method

public RecomputeCanCancel ( ) : void
return void

Run() protected method

protected Run ( ) : void
return void

SanitizeTarPathMember() public static method

public static SanitizeTarPathMember ( string member ) : string
member string
return string

ZipStatusReportAction() public method

public ZipStatusReportAction ( string tempFolder, string destFile ) : System
tempFolder string
destFile string
return System