Skip to content

Commit

Permalink
Merge pull request #16575 from iterate-ch/bugfix/GH-16570
Browse files Browse the repository at this point in the history
Always set maxPartCount parameter.
  • Loading branch information
dkocher authored Nov 25, 2024
2 parents b8f9ab5 + d3d4d35 commit 06b2ac5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import ch.cyberduck.core.PathContainerService;
import ch.cyberduck.core.SimplePathPredicate;
import ch.cyberduck.core.exception.BackgroundException;
import ch.cyberduck.core.preferences.HostPreferences;

import org.apache.commons.codec.binary.StringUtils;
import org.apache.logging.log4j.LogManager;
Expand Down Expand Up @@ -121,7 +122,7 @@ public List<B2UploadPartResponse> list(final String fileid) throws BackgroundExc
Integer startPartNumber = null;
do {
final B2ListPartsResponse response = session.getClient().listParts(
fileid, startPartNumber, null);
fileid, startPartNumber, new HostPreferences(session.getHost()).getInteger("b2.listing.chunksize"));
completed.addAll(response.getFiles());
startPartNumber = response.getNextPartNumber();
}
Expand Down

0 comments on commit 06b2ac5

Please sign in to comment.