Méthode | 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, |
Méthode | 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 |
Méthode | Description | |
---|---|---|
ListFilesInDirectory ( |
public CreateSnapshotFromDirectory ( |
||
dirRoot | ||
comment | string | |
filter | bool>.Func | |
Résultat | SnapshotId |
public abstract CreateSnapshotFromFiles ( FileInfo>.IEnumerable |
||
fileList | FileInfo>.IEnumerable | |
comment | string | |
Résultat | SnapshotId |
protected DeploymentRepository ( ) : System | ||
Résultat | System |
public abstract FromToken ( string tok ) : SnapshotId | ||
tok | string | |
Résultat | SnapshotId |
public GetAddedItemsBetweenSnapshots ( SnapshotId currentId, SnapshotId targetId ) : IEnumerable |
||
currentId | SnapshotId | |
targetId | SnapshotId | |
Résultat | IEnumerable |
public GetDeletedItemsBetweenSnapshots ( SnapshotId currentId, SnapshotId targetId ) : IEnumerable |
||
currentId | SnapshotId | |
targetId | SnapshotId | |
Résultat | IEnumerable |
public GetLatestSnapshot ( ) : |
||
Résultat |
public abstract GetLatestSnapshotId ( ) : SnapshotId | ||
Résultat | SnapshotId |
public GetPreviousSnapshot ( |
||
snapshotInfo | ||
Résultat |
public abstract GetPreviousSnapshotId ( SnapshotId snapshotId ) : SnapshotId | ||
snapshotId | SnapshotId | |
Résultat | SnapshotId |
public abstract GetSnapshotInfo ( SnapshotId snapshotId ) : |
||
snapshotId | SnapshotId | |
Résultat |
public abstract GetSnapshotItems ( SnapshotId token ) : IEnumerable |
||
token | SnapshotId | |
Résultat | IEnumerable |
public ListSnapshotsBetween ( SnapshotId firstId, SnapshotId lastId ) : IEnumerable |
||
firstId | SnapshotId | A more recently created snapshot. |
lastId | SnapshotId | An id older than first Id |
Résultat | IEnumerable |
public PopulateDirectoryFromSnapshot ( SnapshotId snapshotId, |
||
snapshotId | SnapshotId | The snapshot id |
dirRoot | Root to extract | |
Résultat | void |
public ProcessDeletionsBetweenSnapshot ( SnapshotId currentId, SnapshotId targetId, |
||
currentId | SnapshotId | |
targetId | SnapshotId | |
dirRoot | ||
Résultat | void |
protected SafeCombinePath ( |
||
dirInfo | ||
path | string | |
Résultat | string |
protected TryCopyFile ( string src, string dst, bool logCopyFiles = true ) : bool | ||
src | string | |
dst | string | |
logCopyFiles | bool | |
Résultat | bool |
protected TryDeleteFile ( string path ) : bool | ||
path | string | |
Résultat | bool |
public UpdateDirectoryFromSnapshot ( SnapshotId currentId, SnapshotId targetId, |
||
currentId | SnapshotId | |
targetId | SnapshotId | |
dirRoot | ||
Résultat | void |