From 05e6de470cfbff036371fd15f52ff41fb6522608 Mon Sep 17 00:00:00 2001 From: "stravo1@mac" Date: Mon, 4 Mar 2024 20:58:28 +0530 Subject: [PATCH] fix: count starts with 0 --- main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.ts b/main.ts index c3b230c..10f1dc5 100644 --- a/main.ts +++ b/main.ts @@ -354,7 +354,7 @@ export default class driveSyncPlugin extends Plugin { ); var filesList = this.app.vault.getFiles(); let noOfFiles = filesList.length; - let count = 1; + let count = 0; for (const file of filesList) { const buffer: any = await this.app.vault.readBinary(file); await uploadFile(