Options
All
  • Public
  • Public/Protected
  • All
Menu

Callable

  • Asynchronous open(2) - open and possibly create a file.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • flags: OpenMode
    • mode: Mode | undefined | null

      A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to 0o666.

    • callback: function

    Returns void

  • Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be 0o666.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • flags: OpenMode
    • callback: function

    Returns void

Index

Functions

Functions

__promisify__

  • Asynchronous open(2) - open and possibly create a file.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • flags: OpenMode
    • Optional mode: Mode | null

      A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to 0o666.

    Returns Promise<number>

Generated using TypeDoc