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/index.html | 25 ++++++++++++++++++------- doc/us/license.html | 4 ++-- doc/us/manual.html | 22 +++++++++++++++------- 3 files changed, 35 insertions(+), 16 deletions(-) (limited to 'doc') diff --git a/doc/us/index.html b/doc/us/index.html index e8da278..0283cc0 100644 --- a/doc/us/index.html +++ b/doc/us/index.html @@ -71,20 +71,31 @@ the underlying directory structure and file attributes.

Status

-

Current version is 1.3.0. It was developed for Lua 5.1.

+

Current version is 1.4.0. It was developed for Lua 5.1.

Download

LuaFileSystem source can be downloaded from its Lua Forge page. If you are using -LuaBinaries 5.1.2 a Windows binary -version of LuaFileSystem can be found at the same LuaForge page.

+LuaBinaries 5.1.3 a Windows binary +version of LuaFileSystem (compiled with Visual Studio 2005 Express) can be found at the same LuaForge page.

History

-
Version 1.3.0 [26/Oct/2007]
+
Version 1.4.0 [12/Feb/2008]
+
+
    +
  • lfs.attributes + raises an error if attribute does not exist
  • +
  • added function + lfs.setmode + (works only in non Windows systems).
  • +
+
+ +
Version 1.3.0 [26/Oct/2007]
  • added function @@ -107,14 +118,14 @@ version of LuaFileSystem can be found at the same LuaForge page.

    lfs.attributes
  • added function lfs.rmdir
  • -
  • bug correction on lfs.dir
  • +
  • bug correction on lfs.dir
Version 1.1 [30/May/2005]
    -
  • added function lfs.touch.
  • +
  • added function lfs.touch.
@@ -147,7 +158,7 @@ Comments are welcome!

Valid XHTML 1.0!

-

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

+

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

diff --git a/doc/us/license.html b/doc/us/license.html index 14feb79..4ecad4b 100644 --- a/doc/us/license.html +++ b/doc/us/license.html @@ -85,7 +85,7 @@ Ierusalimschy, André Carregal and Tomás Guisasola. The implementation is not derived from licensed software.


-

Copyright © 2004-2007 Kepler Project.

+

Copyright © 2003 Kepler Project.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation @@ -113,7 +113,7 @@ SOFTWARE.

Valid XHTML 1.0!

-

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

+

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

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