diff --git a/sn_cli/src/subcommands/acc_packet.rs b/sn_cli/src/subcommands/acc_packet.rs index 9cf14b8ac2..465321492a 100644 --- a/sn_cli/src/subcommands/acc_packet.rs +++ b/sn_cli/src/subcommands/acc_packet.rs @@ -661,14 +661,16 @@ impl AccountPacket { options: FilesUploadOptions, ) -> Result { let files_api = FilesApi::build(self.client.clone(), self.wallet_dir.clone())?; - let chunk_manager = ChunkManager::new(&self.tracking_info_dir.clone()); + let mut chunk_manager = ChunkManager::new(&self.tracking_info_dir.clone()); + + let total_files = chunk_manager.chunk_with_iter( + self.iter_only_files(), + true, + true, //todo - can't find this equivalent value here. + )?; IterativeUploader::new(chunk_manager, files_api) - .iterate_upload( - self.iter_only_files(), - self.files_dir.clone(), - options.clone(), - ) + .iterate_upload(total_files, self.files_dir.clone(), options.clone()) .await?; // Let's make the storage payment for Folders