Improving lfs.attributes' reference

This commit is contained in:
tomas
2006-03-03 23:58:05 +00:00
parent 6305fb87bd
commit 079b4e7f79

View File

@@ -81,8 +81,13 @@ The compiled binary should be copied to a directory in your LUA_CPATH.</p>
<p>LuaFileSystem offers the following functions:</p>
<dl class="reference">
<dt><a name="attributes"></a><strong><code>lfs.attributes (filepath)</code></strong></dt>
<dd>Returns a table with the file attributes corresponding to <code>filepath</code>.
<dt><a name="attributes"></a><strong><code>lfs.attributes (filepath [, aname])</code></strong></dt>
<dd>Returns a table with the file attributes corresponding to
<code>filepath</code>.
If the second optional argument is given, then only the value of the
named attribute is returned (this use is equivalent to
<code>lfs.attributes(filepath).aname</code>, but the table is not created
and only one attribute is retrieved from the O.S.).
The attributes are:
<dl>
<dt><strong><code>dev</code></strong></dt>
@@ -198,7 +203,7 @@ The compiled binary should be copied to a directory in your LUA_CPATH.</p>
<div id="about">
<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
<p><small>
$Id: manual.html,v 1.25 2006/02/07 01:42:58 uid20013 Exp $
$Id: manual.html,v 1.26 2006/03/03 23:58:05 tomas Exp $
</small></p>
</div> <!-- id="about" -->