From e69674e34e60738500a0e06dbba3d4db6eda7095 Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Sat, 6 Jan 2024 11:46:19 +0800 Subject: [PATCH] globally skip --- src/sync.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sync.ts b/src/sync.ts index 5fdd1d6..fe0eba9 100644 --- a/src/sync.ts +++ b/src/sync.ts @@ -39,6 +39,7 @@ import { atWhichLevel, unixTimeToStr, statFix, + isFolderToSkip, } from "./misc"; import { RemoteClient } from "./remote"; import { @@ -307,6 +308,10 @@ const isSkipItem = ( if (syncConfigDir && isInsideObsFolder(key, configDir)) { return false; } + if (isFolderToSkip(key, [])) { + // some special dirs and files are always skipped + return true; + } return ( isHiddenPath(key, true, false) || (!syncUnderscoreItems && isHiddenPath(key, false, true)) ||