diff options
author | NiteHawk <n1tehawk@users.noreply.github.com> | 2016-07-16 15:35:27 +0200 |
---|---|---|
committer | NiteHawk <n1tehawk@users.noreply.github.com> | 2016-07-16 15:35:27 +0200 |
commit | 32b355a9902e6ce7aae68926fc3f2d05856fc299 (patch) | |
tree | ffcda689b162126d3793a1f0b62ab05eec287250 /doc | |
parent | 080f74f785b2f30708ae797c15fca95a418b028a (diff) | |
download | luafilesystem-32b355a9902e6ce7aae68926fc3f2d05856fc299.tar.gz luafilesystem-32b355a9902e6ce7aae68926fc3f2d05856fc299.tar.bz2 luafilesystem-32b355a9902e6ce7aae68926fc3f2d05856fc299.zip |
Add a 'target' field for symlinkattributes.
It returns the resolved path of the symlink.
Original version by Hisham <hisham@gobolinux.org>, modified to
use a different strategy for sizing the readlink() buffer.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/us/manual.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/us/manual.html b/doc/us/manual.html index f5fbaf6..0ecb625 100644 --- a/doc/us/manual.html +++ b/doc/us/manual.html | |||
@@ -242,6 +242,8 @@ LuaFileSystem offers the following functions: | |||
242 | <dt><a name="symlinkattributes"></a><strong><code>lfs.symlinkattributes (filepath [, aname])</code></strong></dt> | 242 | <dt><a name="symlinkattributes"></a><strong><code>lfs.symlinkattributes (filepath [, aname])</code></strong></dt> |
243 | <dd>Identical to <a href="#attributes">lfs.attributes</a> except that | 243 | <dd>Identical to <a href="#attributes">lfs.attributes</a> except that |
244 | it obtains information about the link itself (not the file it refers to). | 244 | it obtains information about the link itself (not the file it refers to). |
245 | It also adds a <strong><code>target</code></strong> field, containing | ||
246 | the file name that the symlink points to. | ||
245 | On Windows this function does not yet support links, and is identical to | 247 | On Windows this function does not yet support links, and is identical to |
246 | <code>lfs.attributes</code>. | 248 | <code>lfs.attributes</code>. |
247 | </dd> | 249 | </dd> |