Interface ExistsOptions

Options for exists and existsSync.

interface ExistsOptions {
    isDirectory?: boolean;
    isFile?: boolean;
    isReadable?: boolean;
}

Properties

isDirectory?: boolean

When true, will check if the path is a directory as well. Directory symlinks are included.

{false}
isFile?: boolean

When true, will check if the path is a file as well. File symlinks are included.

{false}
isReadable?: boolean

When true, will check if the path is readable by the user as well.

{false}