mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-25 04:44:34 +00:00
using lfs.rmdir instead of os.remove.
This commit is contained in:
@@ -54,7 +54,7 @@ new_att = assert (lfs.attributes (tmpdir))
|
|||||||
assert (new_att.access == attrib.access)
|
assert (new_att.access == attrib.access)
|
||||||
assert (new_att.modification == attrib.modification)
|
assert (new_att.modification == attrib.modification)
|
||||||
-- Remove new directory
|
-- 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")
|
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
|
-- 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")
|
assert (lfs.attributes ("this couldn't be an actual file") == nil, "could get attributes of a non-existent file")
|
||||||
|
|||||||
Reference in New Issue
Block a user