Ensure we have at least one archive file batch.

This commit is contained in:
Greyson Parrelli
2026-07-30 12:34:15 -04:00
committed by Alex Hart
parent 517a4bc4e6
commit ee45dbd540
@@ -470,7 +470,7 @@ class FilesFileSystem(private val context: Context, private val root: DocumentFi
val allFiles = ConcurrentHashMap<String, DocumentFileInfo>()
val total = subFolders.values.size
val completed = AtomicInteger(0)
val chunkSize = (total + batchCount - 1) / batchCount
val chunkSize = ((total + batchCount - 1) / batchCount).coerceAtLeast(1)
Log.d(TAG, "allFilesAsync: $batchCount")