From b66ab2cae9f03c7b3ff75c97a4a5fc59df442fc0 Mon Sep 17 00:00:00 2001 From: carregal Date: Mon, 11 Feb 2008 22:42:21 +0000 Subject: Preparing the 1.4.0 release. Added documentation for lfs.setmode --- doc/us/manual.html | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'doc/us/manual.html') diff --git a/doc/us/manual.html b/doc/us/manual.html index 32bdb92..762464d 100644 --- a/doc/us/manual.html +++ b/doc/us/manual.html @@ -74,7 +74,7 @@ and header files for the target version must be installed properly.

LuaFileSystem offers a Makefile and a separate configuration file, config, -which should be edited to suit your installation before runnig +which should be edited to suit your installation before running make. The file has some definitions like paths to the external libraries, compiler options and the like. @@ -82,12 +82,14 @@ compiler options and the like.

Installation

-

The LuaFileSystem compiled binary should be copied to a directory in your -C path.

+

The easiest way to install LuaFileSystem is to use LuaRocks:

+ +
+luarocks install lfs
+
-

Windows users can use the binary version of LuaFileSystem -(lfs.dll) available at -LuaForge.

+

If you prefer to install LuaFileSystem manually, the compiled binary should be copied to a directory in your +C path.

Reference

@@ -202,6 +204,12 @@ LuaFileSystem offers the following functions:
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.
+ +
lfs.setmode (filepath, 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. +
lfs.symlinkattributes (filepath [, aname])
Identical to lfs.attributes except that @@ -240,7 +248,7 @@ LuaFileSystem offers the following functions:

Valid XHTML 1.0!

-

$Id: manual.html,v 1.38 2007/12/14 15:28:04 carregal Exp $

+

$Id: manual.html,v 1.39 2008/02/11 22:42:21 carregal Exp $

-- cgit v1.2.3-55-g6feb