Cotal TypeScript packages
    Preparing search index...

    Function localWriterGap

    • Why another local account could replace or write an existing entry, and the chmod mode that fixes it when one does. The rule is protectionGap: a group-writable entry is accepted when its group is the caller's proven user private group and it has no extended ACL. A symlink, a foreign owner and world write are never accepted. A root-owned sticky directory is accepted only as an ancestor. The Windows model has no POSIX owner or mode, so it reports nothing.

      Parameters

      • path: string
      • stat: EntryStat
      • ancestor: boolean = false

      Returns { chmod?: string; reason: string } | undefined