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)) ||