@oazmi/kitchensink - v0.9.13
    Preparing search index...

    Function ensureFile

    • ensures that the file exists on system-bound runtimes (i.e. RUNTIME.DENO, RUNTIME.BUN, or RUNTIME.NODE).

      if the file already exists, this function does nothing. if the parent directories for the file do not exist yet, they are created recursively.

      Parameters

      • runtime_enum: RUNTIME
      • file_path: string | URL

      Returns Promise<void>

      an error is thrown if something other than a file already existed at the provided path, or if creating the parent directory had failed.