Method | Description | |
---|---|---|
CreateSnapshotFromDirectory ( |
||
CreateSnapshotFromFiles ( FileInfo>.IEnumerable |
||
FromToken ( string tok ) : SnapshotId | ||
GetAddedItemsBetweenSnapshots ( SnapshotId currentId, SnapshotId targetId ) : IEnumerable |
||
GetDeletedItemsBetweenSnapshots ( SnapshotId currentId, SnapshotId targetId ) : IEnumerable |
||
GetLatestSnapshot ( ) : |
||
GetLatestSnapshotId ( ) : SnapshotId | ||
GetPreviousSnapshot ( |
||
GetPreviousSnapshotId ( SnapshotId snapshotId ) : SnapshotId | ||
GetSnapshotInfo ( SnapshotId snapshotId ) : |
||
GetSnapshotItems ( SnapshotId token ) : IEnumerable |
||
Initialize ( ) : bool | ||
ListAllSnapshots ( ) : IEnumerable |
||
ListSnapshotsBetween ( SnapshotId firstId, SnapshotId lastId ) : IEnumerable |
List snapshots between first id and last id inclusive.
|
|
PopulateDirectoryFromSnapshot ( SnapshotId snapshotId, |
Copies files from snapshot to dirRoot. Doesn't delete any data, only adds or modifies data under dirRoot. |
|
ProcessDeletionsBetweenSnapshot ( SnapshotId currentId, SnapshotId targetId, |
||
UpdateDirectoryFromSnapshot ( SnapshotId currentId, SnapshotId targetId, |
Method | Description | |
---|---|---|
DeploymentRepository ( ) : System | ||
SafeCombinePath ( |
This does a path concatenation but verifies that the resulting file path is a results in a path underneath the root. This is a security best practice to avoid folks modifying files by creating relative paths such as "foo\..\..\bar"
|
|
TryCopyFile ( string src, string dst, bool logCopyFiles = true ) : bool | ||
TryDeleteFile ( string path ) : bool |
Method | Description | |
---|---|---|
ListFilesInDirectory ( |
public CreateSnapshotFromDirectory ( |
||
dirRoot | ||
comment | string | |
filter | bool>.Func | |
return | SnapshotId |
public abstract CreateSnapshotFromFiles ( FileInfo>.IEnumerable |
||
fileList | FileInfo>.IEnumerable | |
comment | string | |
return | SnapshotId |
public abstract FromToken ( string tok ) : SnapshotId | ||
tok | string | |
return | SnapshotId |
public GetAddedItemsBetweenSnapshots ( SnapshotId currentId, SnapshotId targetId ) : IEnumerable |
||
currentId | SnapshotId | |
targetId | SnapshotId | |
return | IEnumerable |
public GetDeletedItemsBetweenSnapshots ( SnapshotId currentId, SnapshotId targetId ) : IEnumerable |
||
currentId | SnapshotId | |
targetId | SnapshotId | |
return | IEnumerable |
public abstract GetLatestSnapshotId ( ) : SnapshotId | ||
return | SnapshotId |
public GetPreviousSnapshot ( |
||
snapshotInfo | ||
return |
public abstract GetPreviousSnapshotId ( SnapshotId snapshotId ) : SnapshotId | ||
snapshotId | SnapshotId | |
return | SnapshotId |
public abstract GetSnapshotInfo ( SnapshotId snapshotId ) : |
||
snapshotId | SnapshotId | |
return |
public abstract GetSnapshotItems ( SnapshotId token ) : IEnumerable |
||
token | SnapshotId | |
return | IEnumerable |
public ListSnapshotsBetween ( SnapshotId firstId, SnapshotId lastId ) : IEnumerable |
||
firstId | SnapshotId | A more recently created snapshot. |
lastId | SnapshotId | An id older than first Id |
return | IEnumerable |
public PopulateDirectoryFromSnapshot ( SnapshotId snapshotId, |
||
snapshotId | SnapshotId | The snapshot id |
dirRoot | Root to extract | |
return | void |
public ProcessDeletionsBetweenSnapshot ( SnapshotId currentId, SnapshotId targetId, |
||
currentId | SnapshotId | |
targetId | SnapshotId | |
dirRoot | ||
return | void |
protected SafeCombinePath ( |
||
dirInfo | ||
path | string | |
return | string |
protected TryCopyFile ( string src, string dst, bool logCopyFiles = true ) : bool | ||
src | string | |
dst | string | |
logCopyFiles | bool | |
return | bool |
protected TryDeleteFile ( string path ) : bool | ||
path | string | |
return | bool |
public UpdateDirectoryFromSnapshot ( SnapshotId currentId, SnapshotId targetId, |
||
currentId | SnapshotId | |
targetId | SnapshotId | |
dirRoot | ||
return | void |