Skip to content

Commit

Permalink
Always set maxPartCount parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 23, 2024
1 parent a36283c commit d3d4d35
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 d3d4d35

Please sign in to comment.