Skip to content

Commit

Permalink
Oops, forgot to wire-up the delete method.
Browse files Browse the repository at this point in the history
  • Loading branch information
brimworks committed Oct 17, 2015
1 parent 0bee087 commit 40c0d6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lua_zip.c
Expand Up @@ -716,6 +716,9 @@ static void S_register_archive(lua_State* L) {
lua_pushcfunction(L, S_archive_rename);
lua_setfield(L, -2, "rename");

lua_pushcfunction(L, S_archive_delete);
lua_setfield(L, -2, "delete");

lua_pop(L, 1);
}

Expand Down
2 changes: 1 addition & 1 deletion test.lua
Expand Up @@ -52,6 +52,7 @@ function main()
test_add()
test_replace()
test_rename()
test_delete()
test_zip_source()
test_file_source()
end
Expand Down Expand Up @@ -218,7 +219,6 @@ function test_delete()
-- TODO: How do you determine if this is a directory?
local sb = ar:stat(".ignore")

file:close()
ar:close()
end

Expand Down

0 comments on commit 40c0d6c

Please sign in to comment.