Function readdirSync

  • Parameters

    • this: V_Context
    • path: PathLike
    • Optionaloptions: NullEnc | ReaddirOptsI<{ withFileTypes?: false }>

    Returns string[]

  • Parameters

    • this: V_Context
    • path: PathLike
    • options: BufferEncodingOption & ReaddirOptions & { withFileTypes?: false }

    Returns Buffer[]

  • Parameters

    • this: V_Context
    • path: PathLike
    • Optionaloptions: NullEnc | ReaddirOptsI<{ withFileTypes?: false }>

    Returns string[] | Buffer[]

  • Parameters

    • this: V_Context
    • path: PathLike
    • options: ReaddirOptsI<{ withFileTypes: true }>

    Returns Dirent[]

  • Parameters

    • this: V_Context
    • path: PathLike
    • Optionaloptions:
          | null
          | "ascii"
          | "utf8"
          | "utf-8"
          | "utf16le"
          | "utf-16le"
          | "ucs2"
          | "ucs-2"
          | "base64"
          | "base64url"
          | "latin1"
          | "binary"
          | "hex"
          | ReaddirOptions & ObjectEncodingOptions
          | ReaddirOptions & "buffer"
          | ReaddirOptions & { encoding: "buffer" }

    Returns string[] | Dirent[] | Buffer[]