mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-23 19:43:06 +00:00
return higher precision times in lfs.attributes
This commit is contained in:
@@ -151,8 +151,8 @@ io.flush()
|
||||
-- Restore access time to current value
|
||||
assert (lfs.touch (tmpfile, attrib.access, attrib.modification))
|
||||
new_att = assert (lfs.attributes (tmpfile))
|
||||
assert (new_att.access == attrib.access)
|
||||
assert (new_att.modification == attrib.modification)
|
||||
assert (new_att.access - attrib.access < 1)
|
||||
assert (new_att.modification - attrib.modification < 1)
|
||||
|
||||
io.write(".")
|
||||
io.flush()
|
||||
|
||||
Reference in New Issue
Block a user