ignore special system files
This commit is contained in:
parent
60ff7e41bf
commit
d067937138
@ -1,7 +1,7 @@
|
|||||||
import type { CipherMethodType, Entity } from "./baseTypes";
|
import type { CipherMethodType, Entity } from "./baseTypes";
|
||||||
import * as openssl from "./encryptOpenSSL";
|
import * as openssl from "./encryptOpenSSL";
|
||||||
import * as rclone from "./encryptRClone";
|
import * as rclone from "./encryptRClone";
|
||||||
import { isVaildText } from "./misc";
|
import { isSpecialFolderNameToSkip, isVaildText } from "./misc";
|
||||||
|
|
||||||
import cloneDeep from "lodash/cloneDeep";
|
import cloneDeep from "lodash/cloneDeep";
|
||||||
import { FakeFs } from "./fsAll";
|
import { FakeFs } from "./fsAll";
|
||||||
@ -189,6 +189,10 @@ export class FakeFsEncrypt extends FakeFs {
|
|||||||
return res;
|
return res;
|
||||||
} else {
|
} else {
|
||||||
for (const innerEntity of innerWalkResult) {
|
for (const innerEntity of innerWalkResult) {
|
||||||
|
if (isSpecialFolderNameToSkip(innerEntity.keyRaw, [])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const key = await this._decryptName(innerEntity.keyRaw);
|
const key = await this._decryptName(innerEntity.keyRaw);
|
||||||
const size = key.endsWith("/") ? 0 : undefined;
|
const size = key.endsWith("/") ? 0 : undefined;
|
||||||
res.push({
|
res.push({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user