From d9cab7b1ff509086dd58f8e8f3c819f1b903742c Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Fri, 24 May 2024 23:13:40 +0800 Subject: [PATCH] fix kind --- src/fsEncrypt.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fsEncrypt.ts b/src/fsEncrypt.ts index 2cdb911..b34de41 100644 --- a/src/fsEncrypt.ts +++ b/src/fsEncrypt.ts @@ -87,7 +87,9 @@ export class FakeFsEncrypt extends FakeFs { this.cacheMapOrigToEnc = {}; this.hasCacheMap = false; - this.kind = `encrypt(${this.innerFs.kind},${method})`; + this.kind = `encrypt(${this.innerFs.kind},${ + this.password !== "" ? method : "no password" + })`; if (method === "rclone-base64") { this.cipherRClone = new rclone.CipherRclone(password, 5);