Function ensureFile
- ensure
File (filePath): Promise<void> Parameters
- filePath: string | URL
The path of the file to ensure, as a string or URL.
Returns Promise<void>
A void promise that resolves once the file exists.
See
https://docs.deno.com/runtime/manual/basics/permissions#file-system-access for more information on Deno's permissions system.
- filePath: string | URL
Asynchronously ensures that the file exists.
If the file already exists, this function does nothing. If the parent directories for the file do not exist, they are created.
Requires
--allow-readand--allow-writepermissions.