Function ensureDir
- ensure
Dir (dir): Promise<void> Parameters
- dir: string | URL
The path of the directory to ensure, as a string or URL.
Returns Promise<void>
A promise that resolves once the directory exists.
See
https://docs.deno.com/runtime/manual/basics/permissions#file-system-access for more information on Deno's permissions system.
- dir: string | URL
Asynchronously ensures that the directory exists, like
mkdir -p.If the directory already exists, this function does nothing. If the directory does not exist, it is created.
Requires
--allow-readand--allow-writepermissions.