diff --git a/doc/us/manual.html b/doc/us/manual.html index af8beae..319d6c5 100644 --- a/doc/us/manual.html +++ b/doc/us/manual.html @@ -85,12 +85,15 @@ The compiled binary should be copied to a directory in your
LuaFileSystem offers the following functions:
++LuaFileSystem offers the following functions: +
lfs.attributes (filepath [, aname])filepath.
+ filepath (or nil followed by an error message
+ in case of error).
If the second optional argument is given, then only the value of the
named attribute is returned (this use is equivalent to
lfs.attributes(filepath).aname, but the table is not created
@@ -155,8 +158,12 @@ The compiled binary should be copied to a directory in your
plus an error string.lfs.dir (path)path is not a directory.nil is returned when there is no more entries.
+ Raises an error if path is not a directory.
+ lfs.lock (filehandle, mode[, start[, length]])start
and length can be used to specify a starting point and
its length; both should be numbers.false plus an error string.
+ Returns true if the operation was successful; in
+ case of error, it returns nil plus an error string.
lfs.mkdir (dirname)true if the operation was successful;
+ in case of error, it returns nil plus an error string.
+
lfs.rmdir (dirname)true if the operation was successful;
+ in case of error, it returns nil plus an error string.
lfs.touch (filepath [, atime [, mtime]])mtime) is the modification time.
Both times are provided in seconds (which should be generated with
Lua standard function os.date).
- If the modifition time is omitted, the access time provided is used;
+ If the modification time is omitted, the access time provided is used;
if both times are omitted, the current time is used.true if the operation was successful;
+ in case of error, it returns nil plus an error string.
+
lfs.unlock (filehandle[, start[, length]])start and
length can be used to specify a starting point and its
length; both should be numbers.false plus a string
- describing the error.true if the operation was successful;
+ in case of error, it returns nil plus an error string.
+