mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
globally skip
This commit is contained in:
parent
c3ed69af66
commit
e69674e34e
@ -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)) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user