cmd-sync-servers - v1.0.0
    Preparing search index...

    Function siteCloak

    • The cloak of a site: the global patterns, unless the site turns them off, then its own patterns, matched together with gitignore semantics so a site's !pattern re-includes what a global pattern cloaks; and its single cloaked paths, which cloak everything beneath them. A pattern that starts with / is anchored at the site's local root. Cloaked paths are never scanned, listed, transferred or deleted, on either side.

      Parameters

      • site: Pick<Site, "cloaking">
      • platform: Platform = process.platform
      • globalPatterns: readonly string[] = []

      Returns Cloak