From 81e5b165bf324689777b967143c751786c405ce4 Mon Sep 17 00:00:00 2001 From: Peter Melnichenko Date: Wed, 4 May 2016 15:49:56 +0300 Subject: Update docs for new return values --- doc/us/manual.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/us/manual.html b/doc/us/manual.html index 86c3406..beffe03 100644 --- a/doc/us/manual.html +++ b/doc/us/manual.html @@ -104,7 +104,7 @@ LuaFileSystem offers the following functions:
lfs.attributes (filepath [, aname | atable])
Returns a table with the file attributes corresponding to - filepath (or nil followed by an error message + filepath (or nil followed by an error message and a system-dependent error code in case of error). If the second optional argument is given and is a string, then only the value of the named attribute is returned (this use is equivalent to @@ -222,14 +222,14 @@ LuaFileSystem offers the following functions:
lfs.mkdir (dirname)
Creates a new directory. The argument is the name of the new directory.
- Returns true if the operation was successful; - in case of error, it returns nil plus an error string. + Returns true in case of success or nil, an error message and + a system-dependent error code in case of error.
lfs.rmdir (dirname)
Removes an existing directory. The argument is the name of the directory.
- Returns true if the operation was successful; - in case of error, it returns nil plus an error string.
+ Returns true in case of success or nil, an error message and + a system-dependent error code in case of error.
lfs.setmode (file, mode)
Sets the writing mode for a file. The mode string can be either "binary" or "text". @@ -255,8 +255,8 @@ LuaFileSystem offers the following functions: Lua standard function os.time). If the modification time is omitted, the access time provided is used; if both times are omitted, the current time is used.
- Returns true if the operation was successful; - in case of error, it returns nil plus an error string. + Returns true in case of success or nil, an error message and + a system-dependent error code in case of error.
lfs.unlock (filehandle[, start[, length]])
-- cgit v1.2.3-55-g6feb