mirror of
https://github.com/Drop-OSS/droplet.git
synced 2025-11-18 10:41:19 +10:00
add metadata about chunk length
This commit is contained in:
@ -28,6 +28,7 @@ struct Chunk {
|
||||
file_name: String,
|
||||
chunk_index: u32,
|
||||
checksum: String,
|
||||
length: usize,
|
||||
}
|
||||
|
||||
#[napi]
|
||||
@ -104,6 +105,7 @@ pub fn generate_manifest(
|
||||
permissions: permissions,
|
||||
file_name: relative.to_str().unwrap().to_string(),
|
||||
checksum: checksum_string,
|
||||
length: length,
|
||||
};
|
||||
|
||||
chunks.push(chunk);
|
||||
|
||||
Reference in New Issue
Block a user