We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5617d1a commit 82dfd8fCopy full SHA for 82dfd8f
src/index.ts
@@ -356,9 +356,7 @@ export default class DownloadQueue {
356
curSpec.createTime = Date.now();
357
358
const [fileExists] = await Promise.all([
359
- RNFS.exists(
360
- this.pathFromId(curSpec.id, this.extensionFromUri(curSpec.url))
361
- ),
+ RNFS.exists(curSpec.path),
362
this.kvfs.write(this.keyFromId(curSpec.id), curSpec),
363
]);
364
if (!curSpec.finished || !fileExists) {
0 commit comments