You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// XXX: combine with get_n_objs and return dictsfnget_total_size(&self) -> PyResult<u64>{let info = rsdos::cli::stat(&self.inner)?;Ok(info.size.loose)}// FIXME: rename count_loosefnget_n_objs(&self) -> PyResult<u64>{let info = rsdos::cli::stat(&self.inner)?;Ok(info.count.loose)}fnget_count_pack(&self) -> PyResult<u64>{let info = rsdos::cli::stat(&self.inner)?;Ok(info.count.packs)}fnget_count_pack_file(&self) -> PyResult<u64>{let info = rsdos::cli::stat(&self.inner)?;Ok(info.count.packs_file)}
prefix get_ is confuse and not necessary.
Ok(ContainerInfo{location: cnt.path.display().to_string(),id: config.container_id.to_string(),compression_algorithm: config.compression_algorithm,count:CountInfo{// number of loose objsloose: loose_files_count,// number of pack objs// FIXME: rename -> packpacks: packs_count,// number of pack filespacks_file: packs_file_count,},size:SizeInfo{// total size of all loose objsloose: loose_files_size,// total size of all pack objspacks: packs_size,// total size of all pack filespacks_file: packs_file_size,// size of pack index db filepacks_db: packs_db_size,},})
prefer pack_file over packs_file?
prefer count.pack_obj over count.packs?
The text was updated successfully, but these errors were encountered:
prefix
get_
is confuse and not necessary.prefer
pack_file
overpacks_file
?prefer
count.pack_obj
overcount.packs
?The text was updated successfully, but these errors were encountered: