From d067937138f20b73507e5220f3ff780e7ec3c602 Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Thu, 13 Jun 2024 03:32:27 +0800 Subject: [PATCH] ignore special system files --- src/fsEncrypt.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fsEncrypt.ts b/src/fsEncrypt.ts index ba4717c..ed06da6 100644 --- a/src/fsEncrypt.ts +++ b/src/fsEncrypt.ts @@ -1,7 +1,7 @@ import type { CipherMethodType, Entity } from "./baseTypes"; import * as openssl from "./encryptOpenSSL"; import * as rclone from "./encryptRClone"; -import { isVaildText } from "./misc"; +import { isSpecialFolderNameToSkip, isVaildText } from "./misc"; import cloneDeep from "lodash/cloneDeep"; import { FakeFs } from "./fsAll"; @@ -189,6 +189,10 @@ export class FakeFsEncrypt extends FakeFs { return res; } else { for (const innerEntity of innerWalkResult) { + if (isSpecialFolderNameToSkip(innerEntity.keyRaw, [])) { + continue; + } + const key = await this._decryptName(innerEntity.keyRaw); const size = key.endsWith("/") ? 0 : undefined; res.push({