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

export interface ChunkEntry extends Chunk {
filePath: string;
}

export interface DeltaPlan {
newAndModifiedFiles: FileEntry[];
deletedFiles: string[];
missingChunks: ChunkEntry[];
obsoleteChunks: ChunkEntry[];
}

Properties

PropertyTypeDescription
newAndModifiedFilesFileEntry[]List of files that are new of have been modified since last update.
deletedFilesstring[]List of the file names that have been deleted since last update.
missingChunksChunkEntry[]List of the chunks that are missing in the update and need to be downloaded.
obsoleteChunksChunkEntry[]List of the chunks that are obsolete in the update and need to be deleted or replaced.