diff options
author | uid20006 <uid20006> | 2005-08-16 13:48:23 +0000 |
---|---|---|
committer | uid20006 <uid20006> | 2005-08-16 13:48:23 +0000 |
commit | e7ced7f8af5f3316cf4508478a13dc51cff28773 (patch) | |
tree | 775fe8a7c605cda478c87ea51c9e7110b279b70d /tests | |
parent | 5cb0d77851770950d4b9f0d4100318abc5b2dd10 (diff) | |
download | luafilesystem-e7ced7f8af5f3316cf4508478a13dc51cff28773.tar.gz luafilesystem-e7ced7f8af5f3316cf4508478a13dc51cff28773.tar.bz2 luafilesystem-e7ced7f8af5f3316cf4508478a13dc51cff28773.zip |
using lfs.rmdir instead of os.remove.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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)) | |||
54 | assert (new_att.access == attrib.access) | 54 | assert (new_att.access == attrib.access) |
55 | assert (new_att.modification == attrib.modification) | 55 | assert (new_att.modification == attrib.modification) |
56 | -- Remove new directory | 56 | -- Remove new directory |
57 | assert (os.remove (tmpdir), "could not remove new directory") | 57 | assert (lfs.rmdir (tmpdir), "could not remove new directory") |
58 | assert (lfs.mkdir (tmpdir.."/lfs_tmp_dir") == false, "could create a directory inside a non-existent one") | 58 | assert (lfs.mkdir (tmpdir.."/lfs_tmp_dir") == false, "could create a directory inside a non-existent one") |
59 | -- Trying to get attributes of a non-existent file | 59 | -- Trying to get attributes of a non-existent file |
60 | assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file") | 60 | assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file") |