Empties a directory of all files and subdirectories. Optionally skips files and directories at the top level. Creates an
empty directory if it doesn't exist and EmptyDirectoryOptions.throwIfNotExistswas not set totrue`. Only allows
emptying directories that are subdirectories of the current working directory unless another directory is passed in the
optional EmptyDirectoryOptions.allowedBaseDirectory param. See EmptyDirectoryOptions.
Empties a directory of all files and subdirectories. Optionally skips files and directories at the top level. Creates an empty directory if it doesn't exist and EmptyDirectoryOptions.throwIfNotExists
was not set totrue`. Only allows emptying directories that are subdirectories of the current working directory unless another directory is passed in the optional EmptyDirectoryOptions.allowedBaseDirectory param. See EmptyDirectoryOptions.