Skip to content

Commit

Permalink
Fix a purge directory issue (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
lylex committed Jan 24, 2019
1 parent f41f0d7 commit 1bb0590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func Move(src, dir string) {

// Delete removes a file or directory from disk.
func Delete(path string) {
if err := os.Remove(path); err != nil {
if err := os.RemoveAll(path); err != nil {
utils.ErrExit("error deleting file or directory: %s\n", err)
}
}
Expand Down

0 comments on commit 1bb0590

Please sign in to comment.