Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureEmptyDirectory ¶
EnsureEmptyDirectory ensures the directory given by `path` is empty. If the directory does not exist, it will be created with permission bits given by `perm`. If the directory exists, it will not simply rm -rf && mkdir -p as the calling process may not have permissions to delete the directory. E.g. in the case of a pod mount. Rather, it will delete the contents of the directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.