Represents the detailed state of a file or directory's hidden attribute

interface HiddenMetadata {
    dotPrefix: boolean;
    hidden: boolean;
    supported: { dotPrefix: boolean; systemFlag: boolean };
    systemFlag: boolean;
}

Properties

dotPrefix: boolean

Whether the item has a dot prefix (POSIX-style hidden). Windows doesn't care about dot prefixes.

hidden: boolean

Whether the item is considered hidden by any method

supported: { dotPrefix: boolean; systemFlag: boolean }

Indicates which hiding methods are supported on the current platform

Type declaration

  • dotPrefix: boolean

    Whether dot prefix hiding is supported on the current operating system

  • systemFlag: boolean

    Whether system flag hiding is supported

systemFlag: boolean

Whether the item has system hidden flags set, like via chflags on macOS or on Windows via GetFileAttributesW