mobiletto 1.1.25 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/drivers/b2/index.js +2 -2
- package/package.json +1 -1
package/drivers/b2/index.js
CHANGED
|
@@ -166,7 +166,7 @@ class StorageClient {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
if (hasMax && files.length + list.length >= maxFileCount) {
|
|
169
|
-
files.push(...list.slice(0, (
|
|
169
|
+
files.push(...list.slice(0, (maxFileCount - files.length) + 1))
|
|
170
170
|
return true
|
|
171
171
|
} else {
|
|
172
172
|
files.push(...list)
|
|
@@ -187,7 +187,7 @@ class StorageClient {
|
|
|
187
187
|
}
|
|
188
188
|
await handleResponse(files, pth, response, visitor)
|
|
189
189
|
if (dirDiscovered && !pth.endsWith(this.delimiter)) {
|
|
190
|
-
const subdirFiles = await this.b2_list(pth + this.delimiter, recursive, null, {
|
|
190
|
+
const subdirFiles = await this.b2_list(pth + this.delimiter, recursive, null, { dir: true })
|
|
191
191
|
files.shift()
|
|
192
192
|
files.push(...subdirFiles)
|
|
193
193
|
}
|