Skip to content

Commit

Permalink
Update delete() to delete recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
thesephist committed Dec 22, 2019
1 parent 535f241 commit 98b5f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ink/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ func inkDelete(ctx *Context, in []Value) (Value, error) {
}

// delete
err := os.Remove(string(filePath))
err := os.RemoveAll(string(filePath))
if err != nil {
ctx.ExecListener(func() {
_, err := evalInkFunction(cb, false, errMsg(
Expand Down

0 comments on commit 98b5f7e

Please sign in to comment.