Skip to main content

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

PropertyTypeDescription
new_and_modified_filesVec<FileEntry>List of files that are new of have been modified since last update.
deleted_filesVec<String>List of the file names that have been deleted since last update.
missing_chunksVec<ChunkEntry>List of the chunks that are missing in the update and need to be downloaded.
obsolete_chunksVec<ChunkEntry>List of the chunks that are obsolete in the update and need to be deleted or replaced.