diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/us/manual.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/us/manual.html b/doc/us/manual.html index 7a92f58..86c3406 100644 --- a/doc/us/manual.html +++ b/doc/us/manual.html | |||
@@ -102,14 +102,15 @@ LuaFileSystem offers the following functions: | |||
102 | </p> | 102 | </p> |
103 | 103 | ||
104 | <dl class="reference"> | 104 | <dl class="reference"> |
105 | <dt><a name="attributes"></a><strong><code>lfs.attributes (filepath [, aname])</code></strong></dt> | 105 | <dt><a name="attributes"></a><strong><code>lfs.attributes (filepath [, aname | atable])</code></strong></dt> |
106 | <dd>Returns a table with the file attributes corresponding to | 106 | <dd>Returns a table with the file attributes corresponding to |
107 | <code>filepath</code> (or <code>nil</code> followed by an error message | 107 | <code>filepath</code> (or <code>nil</code> followed by an error message |
108 | in case of error). | 108 | in case of error). |
109 | If the second optional argument is given, then only the value of the | 109 | If the second optional argument is given and is a string, then only the value of the |
110 | named attribute is returned (this use is equivalent to | 110 | named attribute is returned (this use is equivalent to |
111 | <code>lfs.attributes(filepath).aname</code>, but the table is not created | 111 | <code>lfs.attributes(filepath)[aname]</code>, but the table is not created |
112 | and only one attribute is retrieved from the O.S.). | 112 | and only one attribute is retrieved from the O.S.). |
113 | if a table is passed as the second argument, it is filled with attributes and returned instead of a new table. | ||
113 | The attributes are described as follows; | 114 | The attributes are described as follows; |
114 | attribute <code>mode</code> is a string, all the others are numbers, | 115 | attribute <code>mode</code> is a string, all the others are numbers, |
115 | and the time related attributes use the same time reference of | 116 | and the time related attributes use the same time reference of |