Function readdirSync

  • Parameters

    • path: PathLike
    • Optionaloptions: null | BufferEncoding | ObjectEncodingOptions & ReaddirOptions & {
          withFileTypes?: false;
      }

    Returns string[]

  • Parameters

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

    Returns Buffer[]

  • Parameters

    • path: PathLike
    • Optionaloptions: null | BufferEncoding | ObjectEncodingOptions & ReaddirOptions & {
          withFileTypes?: false;
      }

    Returns string[] | Buffer[]

  • Parameters

    • path: PathLike
    • options: ObjectEncodingOptions & ReaddirOptions & {
          withFileTypes: true;
      }

    Returns Dirent[]

  • Parameters

    • path: PathLike
    • Optionaloptions: null | BufferEncoding | (ReaddirOptions & (ObjectEncodingOptions | BufferEncodingOption))

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