Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveContents ¶
RemoveContents removes all contents of a directory but keeps the directory itself.
Origin:
https://stackoverflow.com/questions/33450980/golang-remove-all-contents-of-a-directory/33451503#33451503 https://stackoverflow.com/users/221700/peterso
Changes:
- Migrate to cage/io.CloseOrStderr
- Migrate to cage/os/file.RemoveAllSafer
- Migrate to cage/os/file.ValidateRemove
- Migrate to github.com/pkg/errors
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.