diff options
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r-- | pkg/commands/os.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go index 9e0967cba..1fb8e8da6 100644 --- a/pkg/commands/os.go +++ b/pkg/commands/os.go @@ -255,9 +255,9 @@ func (c *OSCommand) CreateTempFile(filename, content string) (string, error) { return tmpfile.Name(), nil } -// RemoveFile removes a file at the specified path -func (c *OSCommand) RemoveFile(filename string) error { - err := os.Remove(filename) +// Remove removes a file or directory at the specified path +func (c *OSCommand) Remove(filename string) error { + err := os.RemoveAll(filename) return WrapError(err) } |