Add a 'target' field for symlinkattributes.

It returns the resolved path of the symlink.
This commit is contained in:
Hisham
2016-06-20 20:32:20 -03:00
parent 7fae11cdb5
commit 2e068eb438
3 changed files with 67 additions and 1 deletions

View File

@@ -242,6 +242,8 @@ LuaFileSystem offers the following functions:
<dt><a name="symlinkattributes"></a><strong><code>lfs.symlinkattributes (filepath [, aname])</code></strong></dt>
<dd>Identical to <a href="#attributes">lfs.attributes</a> except that
it obtains information about the link itself (not the file it refers to).
It also adds a <strong><code>target</code></strong> field, containing
the file name that the symlink points to.
On Windows this function does not yet support links, and is identical to
<code>lfs.attributes</code>.
</dd>