DeltaPlan
A DeltaPlan represents what is needed to perform a new upload or download of a directory.
It describes the new and modified files, the deleted files, the missing chunks and the obsolete chunks of the target.
Each instance is produced automatically by the SDK when comparing rd-indexes.
Structure
pub struct ChunkEntry {
pub chunk: Chunk,
pub file_path: String;
}
pub struct DeltaPlan {
pub new_and_modified_files: Vec<FileEntry>;
pub deleted_files: Vec<String>;
pub missing_chunks: Vec<ChunkEntry>;
pub obsolete_chunks: Vec<ChunkEntry>;
}
Properties
| Property | Type | Description |
|---|---|---|
| new_and_modified_files | Vec<FileEntry> | List of files that are new of have been modified since last update. |
| deleted_files | Vec<String> | List of the file names that have been deleted since last update. |
| missing_chunks | Vec<ChunkEntry> | List of the chunks that are missing in the update and need to be downloaded. |
| obsolete_chunks | Vec<ChunkEntry> | List of the chunks that are obsolete in the update and need to be deleted or replaced. |