Documentation for Simbo's Packages
    Preparing search index...

    Function isAccessible

    • Check if a file or directory is accessible with the given modes.

      Modes can be a combination of 'r', 'w', and 'x'.

      Parameters

      • type: "file" | "directory"

        The type of the path ('file' or 'directory').

      • modes: string

        The access modes to check ('r', 'w', 'x' or a combination).

      • path: string

        The path to check.

      Returns Promise<boolean>

      A promised boolean indicating if the path is accessible.