Function emptyDirSync
- empty
Dir (dir): voidSync Parameters
- dir: string | URL
The path of the directory to empty, as a string or URL.
Returns void
A void value that returns once the directory is empty.
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 a directory is empty deletes the directory contents it is not empty.
If the directory does not exist, it is created. The directory itself is not deleted.
Requires
--allow-readand--allow-writepermissions.