From 37d8524e7e5237d3d67b2db4692b00b0eb95077b Mon Sep 17 00:00:00 2001
From: TsT
lfs.attributes (filepath [, aname | atable])
lfs.attributes (filepath [, request_name | result_table])
filepath
(or nil
followed by an error message and a system-dependent error code
in case of error).
If the second optional argument is given and is a string, then only the value of the
named attribute is returned (this use is equivalent to
- lfs.attributes(filepath)[aname]
, but the table is not created
+ lfs.attributes(filepath)[request_name]
, but the table is not created
and only one attribute is retrieved from the O.S.).
- if a table is passed as the second argument, it is filled with attributes and returned instead of a new table.
+ if a table is passed as the second argument, it (result_table
) is filled with attributes and returned instead of a new table.
The attributes are described as follows;
attribute mode
is a string, all the others are numbers,
and the time related attributes use the same time reference of
@@ -239,7 +239,7 @@ LuaFileSystem offers the following functions:
setting the mode has no effect, and the mode is always returned as binary
.
lfs.symlinkattributes (filepath [, aname])
lfs.symlinkattributes (filepath [, request_name])
target
field, containing
--
cgit v1.2.3-55-g6feb