Function ensureDirSync
- ensure
Dir (dir): voidSync Parameters
- dir: string | URL
The path of the directory to ensure, as a string or URL.
Returns void
A void value that returns 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
Synchronously 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.