Property | Type | Description | |
---|---|---|---|
CompareHashes | bool |
Method | Description | |
---|---|---|
CopyStream ( Stream inputStream, Stream outputStream, string seed = null ) : byte[] | ||
CreateEmptyFile ( string filename ) : void | ||
CreateNonExistentDirectory ( string path ) : void | ||
CreateParentDirectoryForFile ( string path ) : void | ||
CreateTmpName ( string path ) : string | ||
DeleteDirectory ( string path ) : void | ||
DeleteDirectorySilently ( string path ) : void | ||
DeleteFile ( string filePath ) : void | ||
DeleteFileSilently ( string filePath ) : void | ||
DirectoryCopy ( string sourceDirName, string destDirName ) : void | ||
GetFingerprint ( byte hash, int length = 8 ) : string | ||
GetMD5OfFile ( string filename, string seed = null ) : byte[] | ||
GetMD5OfString ( string value, string seed = null ) : byte[] | ||
PathExists ( string path ) : bool | ||
ReadAllText ( string path, string defaultValue = null ) : string | ||
TryReadHashProtectedTextFile ( string filename, string manifest, string seed ) : string | ||
VerifyExpandedArchive ( string baseDirectory, Predicate |
||
WriteAllTextAtomic ( string filePath, string value, bool deleteOnError ) : void | ||
WriteAllTextAtomicWithManifest ( string filename, string value, string manifest, string seed, bool deleteOnError ) : void | ||
WriteFileAtomic ( string filePath, byte contents, bool deleteOnError ) : void |
Method | Description | |
---|---|---|
CompareHashes ( byte a1, byte a2 ) : bool |
public static CopyStream ( Stream inputStream, Stream outputStream, string seed = null ) : byte[] | ||
inputStream | Stream | |
outputStream | Stream | |
seed | string | |
return | byte[] |
public static CreateEmptyFile ( string filename ) : void | ||
filename | string | |
return | void |
public static CreateNonExistentDirectory ( string path ) : void | ||
path | string | |
return | void |
public static CreateParentDirectoryForFile ( string path ) : void | ||
path | string | |
return | void |
public static CreateTmpName ( string path ) : string | ||
path | string | |
return | string |
public static DeleteDirectory ( string path ) : void | ||
path | string | |
return | void |
public static DeleteDirectorySilently ( string path ) : void | ||
path | string | |
return | void |
public static DeleteFile ( string filePath ) : void | ||
filePath | string | |
return | void |
public static DeleteFileSilently ( string filePath ) : void | ||
filePath | string | |
return | void |
public static DirectoryCopy ( string sourceDirName, string destDirName ) : void | ||
sourceDirName | string | |
destDirName | string | |
return | void |
public static GetFingerprint ( byte hash, int length = 8 ) : string | ||
hash | byte | |
length | int | |
return | string |
public static GetMD5OfFile ( string filename, string seed = null ) : byte[] | ||
filename | string | |
seed | string | |
return | byte[] |
public static GetMD5OfString ( string value, string seed = null ) : byte[] | ||
value | string | |
seed | string | |
return | byte[] |
public static PathExists ( string path ) : bool | ||
path | string | |
return | bool |
public static ReadAllText ( string path, string defaultValue = null ) : string | ||
path | string | |
defaultValue | string | |
return | string |
public static TryReadHashProtectedTextFile ( string filename, string manifest, string seed ) : string | ||
filename | string | |
manifest | string | |
seed | string | |
return | string |
public static VerifyExpandedArchive ( string baseDirectory, Predicate |
||
baseDirectory | string | |
shouldCheck | Predicate |
|
manifestName | string | |
return | bool |
public static WriteAllTextAtomic ( string filePath, string value, bool deleteOnError ) : void | ||
filePath | string | |
value | string | |
deleteOnError | bool | |
return | void |
public static WriteAllTextAtomicWithManifest ( string filename, string value, string manifest, string seed, bool deleteOnError ) : void | ||
filename | string | |
value | string | |
manifest | string | |
seed | string | |
deleteOnError | bool | |
return | void |
public static WriteFileAtomic ( string filePath, byte contents, bool deleteOnError ) : void | ||
filePath | string | |
contents | byte | |
deleteOnError | bool | |
return | void |