From 931215de4b4a61f043ca735767af497ea949a93f Mon Sep 17 00:00:00 2001 From: Yevgeniy Brikman Date: Wed, 1 Feb 2017 00:04:13 +0000 Subject: [PATCH] Update comment on DeleteFiles method --- util/file.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/file.go b/util/file.go index 0133f2861..fe2481ba4 100644 --- a/util/file.go +++ b/util/file.go @@ -46,7 +46,8 @@ func CanonicalPaths(paths []string, basePath string) ([]string, error) { return canonicalPaths, nil } -// Delete the given list of files +// Delete the given list of files. Note: this function ONLY deletes files and will return an error if you pass in a +// folder path. func DeleteFiles(files []string) error { for _, file := range files { if err := os.Remove(file); err != nil {