From e7ced7f8af5f3316cf4508478a13dc51cff28773 Mon Sep 17 00:00:00 2001 From: uid20006 Date: Tue, 16 Aug 2005 13:48:23 +0000 Subject: using lfs.rmdir instead of os.remove. --- tests/test.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.lua b/tests/test.lua index 07436f9..a152bbb 100644 --- a/tests/test.lua +++ b/tests/test.lua @@ -54,7 +54,7 @@ new_att = assert (lfs.attributes (tmpdir)) assert (new_att.access == attrib.access) assert (new_att.modification == attrib.modification) -- Remove new directory -assert (os.remove (tmpdir), "could not remove new directory") +assert (lfs.rmdir (tmpdir), "could not remove new directory") assert (lfs.mkdir (tmpdir.."/lfs_tmp_dir") == false, "could create a directory inside a non-existent one") -- Trying to get attributes of a non-existent file assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file") -- cgit v1.2.3-55-g6feb