Skip to content

Commit

Permalink
Update comment on DeleteFiles method
Browse files Browse the repository at this point in the history
  • Loading branch information
brikis98 committed Feb 1, 2017
1 parent 15ed21e commit 931215d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 931215d

Please sign in to comment.