globally skip

This commit is contained in:
fyears 2024-01-06 11:46:19 +08:00
parent c3ed69af66
commit e69674e34e

View File

@ -39,6 +39,7 @@ import {
atWhichLevel, atWhichLevel,
unixTimeToStr, unixTimeToStr,
statFix, statFix,
isFolderToSkip,
} from "./misc"; } from "./misc";
import { RemoteClient } from "./remote"; import { RemoteClient } from "./remote";
import { import {
@ -307,6 +308,10 @@ const isSkipItem = (
if (syncConfigDir && isInsideObsFolder(key, configDir)) { if (syncConfigDir && isInsideObsFolder(key, configDir)) {
return false; return false;
} }
if (isFolderToSkip(key, [])) {
// some special dirs and files are always skipped
return true;
}
return ( return (
isHiddenPath(key, true, false) || isHiddenPath(key, true, false) ||
(!syncUnderscoreItems && isHiddenPath(key, false, true)) || (!syncUnderscoreItems && isHiddenPath(key, false, true)) ||