diff --git a/index.html b/index.html
index 9798404..6d7072b 100644
--- a/index.html
+++ b/index.html
@@ -71,7 +71,8 @@ the underlying directory structure and file attributes.
Status
-Current version is 1.5.0. It was developed for Lua 5.1.
+Current version is 1.6.0. It was developed for Lua 5.1 but also
+ works with Lua 5.2.
Download
@@ -82,6 +83,12 @@ page.
History
+ - Version 1.6.0 [26/Sep/2012]
+
getcwd fix for Android
+ support for Lua 5.2
+ add lfs.link
+ other bug fixes
+
Version 1.5.0 [20/Oct/2009]
Added explicit next and close methods to second return value of lfs.dir
(the directory object), for explicit iteration or explicit closing.
diff --git a/manual.html b/manual.html
index aa51b73..996dc1f 100644
--- a/manual.html
+++ b/manual.html
@@ -172,12 +172,14 @@ LuaFileSystem offers the following functions:
Returns true in case of success or nil plus an
error string.
- lfs.lock_dir(path)
+ lfs.lock_dir(path, [seconds_stale])
Creates a lockfile (called lockfile.lfs) in path if it does not
- exist and returns the lock.
- To free the the lock call lock:free().
+ exist and returns the lock. If the lock already exists checks if
+ it's stale, using the second parameter (default for the second
+ parameter is INT_MAX, which in practice means the lock will never
+ be stale. To free the the lock call lock:free().
In case of any errors it returns nil and the error message. In
- particular, if the lock exists it returns the
+ particular, if the lock exists and is not stale it returns the
"File exists" message.
lfs.currentdir ()
@@ -204,6 +206,13 @@ LuaFileSystem offers the following functions:
Returns true if the operation was successful; in
case of error, it returns nil plus an error string.
+
+ lfs.link (old, new[, symlink])
+ Creates a link. The first argument is the object to link to
+ and the second is the name of the link. If the optional third
+ argument is true, the link will by a symbolic link (by default, a
+ hard link is created).
+
lfs.mkdir (dirname)
Creates a new directory. The argument is the name of the new
@@ -219,15 +228,15 @@ LuaFileSystem offers the following functions:
lfs.setmode (file, mode)
Sets the writing mode for a file. The mode string can be either binary or text.
- Returns the previous mode string for the file. This function is only available in Windows, so you may want to make sure that
- lfs.setmode exists before using it.
+ Returns the previous mode string for the file. On non-Windows platforms, where the two modes are identical,
+ setting the mode has no effect, and the mode is always returned as binary.
lfs.symlinkattributes (filepath [, aname])
Identical to lfs.attributes except that
it obtains information about the link itself (not the file it refers to).
- This function is not available in Windows so you may want to make sure that
- lfs.symlinkattributes exists before using it.
+ On Windows this function does not yet support links, and is identical to
+ lfs.attributes.
lfs.touch (filepath [, atime [, mtime]])