globally skip

This commit is contained in:
fyears
2024-01-06 11:46:19 +08:00
parent c3ed69af66
commit e69674e34e
+5
View File
@@ -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)) ||