diff --git a/manual.html b/manual.html index 7a92f58..f5fbaf6 100644 --- a/manual.html +++ b/manual.html @@ -102,14 +102,15 @@ LuaFileSystem offers the following functions:
lfs.attributes (filepath [, aname])lfs.attributes (filepath [, aname | atable])filepath (or nil followed by an error message
in case of error).
- If the second optional argument is given, then only the value of the
+ 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)[aname], 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.
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
@@ -176,7 +177,7 @@ LuaFileSystem offers the following functions:
Returns true in case of success or nil plus an
error string.lfs.lock_dir(path, [seconds_stale])lfs.lock_dir(path, [seconds_stale])path if it does not
exist and returns the lock. If the lock already exists checks if
it's stale, using the second parameter (default for the second
@@ -186,7 +187,7 @@ LuaFileSystem offers the following functions:
particular, if the lock exists and is not stale it returns the
"File exists" message.lfs.currentdir ()lfs.currentdir ()nil
plus an error string.