diff options
| author | carregal <carregal> | 2008-02-11 22:42:21 +0000 |
|---|---|---|
| committer | carregal <carregal> | 2008-02-11 22:42:21 +0000 |
| commit | b66ab2cae9f03c7b3ff75c97a4a5fc59df442fc0 (patch) | |
| tree | 3821afea9fa46010f0047accff73e6bd85bf68af /doc/us/manual.html | |
| parent | 78f28b64686390592792e2d5abba26c6f815d534 (diff) | |
| download | luafilesystem-b66ab2cae9f03c7b3ff75c97a4a5fc59df442fc0.tar.gz luafilesystem-b66ab2cae9f03c7b3ff75c97a4a5fc59df442fc0.tar.bz2 luafilesystem-b66ab2cae9f03c7b3ff75c97a4a5fc59df442fc0.zip | |
Preparing the 1.4.0 release.
Added documentation for lfs.setmode
Diffstat (limited to 'doc/us/manual.html')
| -rw-r--r-- | doc/us/manual.html | 22 |
1 files changed, 15 insertions, 7 deletions
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. | |||
| 74 | <p> | 74 | <p> |
| 75 | LuaFileSystem offers a Makefile and a separate configuration file, | 75 | LuaFileSystem offers a Makefile and a separate configuration file, |
| 76 | <code>config</code>, | 76 | <code>config</code>, |
| 77 | which should be edited to suit your installation before runnig | 77 | which should be edited to suit your installation before running |
| 78 | <code>make</code>. | 78 | <code>make</code>. |
| 79 | The file has some definitions like paths to the external libraries, | 79 | The file has some definitions like paths to the external libraries, |
| 80 | compiler options and the like. | 80 | compiler options and the like. |
| @@ -82,12 +82,14 @@ compiler options and the like. | |||
| 82 | 82 | ||
| 83 | <h2><a name="installation"></a>Installation</h2> | 83 | <h2><a name="installation"></a>Installation</h2> |
| 84 | 84 | ||
| 85 | <p>The LuaFileSystem compiled binary should be copied to a directory in your | 85 | <p>The easiest way to install LuaFileSystem is to use LuaRocks:</p> |
| 86 | <a href="http://www.lua.org/manual/5.1/manual.html#pdf-package.cpath">C path</a>.</p> | 86 | |
| 87 | <pre class="example"> | ||
| 88 | luarocks install lfs | ||
| 89 | </pre> | ||
| 87 | 90 | ||
| 88 | <p>Windows users can use the binary version of LuaFileSystem | 91 | <p>If you prefer to install LuaFileSystem manually, the compiled binary should be copied to a directory in your |
| 89 | (<code>lfs.dll</code>) available at | 92 | <a href="http://www.lua.org/manual/5.1/manual.html#pdf-package.cpath">C path</a>.</p> |
| 90 | <a href="http://luaforge.net/projects/luafilesystem/files">LuaForge</a>.</p> | ||
| 91 | 93 | ||
| 92 | <h2><a name="reference"></a>Reference</h2> | 94 | <h2><a name="reference"></a>Reference</h2> |
| 93 | 95 | ||
| @@ -202,6 +204,12 @@ LuaFileSystem offers the following functions: | |||
| 202 | <dd>Removes an existing directory. The argument is the name of the directory.<br /> | 204 | <dd>Removes an existing directory. The argument is the name of the directory.<br /> |
| 203 | Returns <code>true</code> if the operation was successful; | 205 | Returns <code>true</code> if the operation was successful; |
| 204 | in case of error, it returns <code>nil</code> plus an error string.</dd> | 206 | in case of error, it returns <code>nil</code> plus an error string.</dd> |
| 207 | |||
| 208 | <dt><a name="setmode"></a><strong><code>lfs.setmode (filepath, mode)</code></strong></dt> | ||
| 209 | <dd>Sets the writing mode for a file. The mode string can be either <code>binary</code> or <code>text</code>. | ||
| 210 | Returns the previous mode string for the file. This function is only available in Windows, so you may want to make sure that | ||
| 211 | <code>lfs.setmode</code> exists before using it. | ||
| 212 | </dd> | ||
| 205 | 213 | ||
| 206 | <dt><a name="symlinkattributes"></a><strong><code>lfs.symlinkattributes (filepath [, aname])</code></strong></dt> | 214 | <dt><a name="symlinkattributes"></a><strong><code>lfs.symlinkattributes (filepath [, aname])</code></strong></dt> |
| 207 | <dd>Identical to <a href="#attributes">lfs.attributes</a> except that | 215 | <dd>Identical to <a href="#attributes">lfs.attributes</a> except that |
| @@ -240,7 +248,7 @@ LuaFileSystem offers the following functions: | |||
| 240 | 248 | ||
| 241 | <div id="about"> | 249 | <div id="about"> |
| 242 | <p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0!</a></p> | 250 | <p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0!</a></p> |
| 243 | <p><small>$Id: manual.html,v 1.38 2007/12/14 15:28:04 carregal Exp $</small></p> | 251 | <p><small>$Id: manual.html,v 1.39 2008/02/11 22:42:21 carregal Exp $</small></p> |
| 244 | </div> <!-- id="about" --> | 252 | </div> <!-- id="about" --> |
| 245 | 253 | ||
| 246 | </div> <!-- id="container" --> | 254 | </div> <!-- id="container" --> |
