aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README43
-rw-r--r--doc/us/examples.html3
-rw-r--r--doc/us/index.html14
-rw-r--r--doc/us/license.html5
-rw-r--r--doc/us/manual.html14
-rw-r--r--src/lfs.c4
-rw-r--r--src/lfs.def2
7 files changed, 62 insertions, 23 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..f82f97d
--- /dev/null
+++ b/README
@@ -0,0 +1,43 @@
1Overview
2--------
3
4LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution. LuaFileSystem offers a portable way to access the underlying directory structure and file attributes. LuaFileSystem is free software and uses the same license as Lua 5.1
5
6Status
7------
8
9Current version is 1.2.1. It was developed for Lua 5.1.
10
11Download
12--------
13
14LuaFileSystem 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.
15
16History
17-------
18
19Version 1.2.1 [08/May/2007]
20* compatible only with Lua 5.1 (Lua 5.0 support was dropped)
21
22Version 1.2 [15/Mar/2006]
23* added optional argument to lfs.attributes
24* added function lfs.rmdir
25* bug correction on lfs.dir
26
27Version 1.1 [30/May/2005]
28* added function lfs.touch.
29
30Version 1.0 [21/Jan/2005]
31Version 1.0 Beta [10/Nov/2004]
32
33Credits
34-------
35
36LuaFileSystem was designed by Roberto Ierusalimschy, André Carregal and Tomás Guisasola as part of the Kepler Project, which holds its copyright.
37
38Contact us
39----------
40
41For more information please contact us on (info @ keplerproject.org). Comments are welcome!
42
43You can also reach other Kepler developers and users on the Kepler Project mailing list. \ No newline at end of file
diff --git a/doc/us/examples.html b/doc/us/examples.html
index 89f7070..b972d6c 100644
--- a/doc/us/examples.html
+++ b/doc/us/examples.html
@@ -39,6 +39,7 @@
39 <li><a href="manual.html">Manual</a> 39 <li><a href="manual.html">Manual</a>
40 <ul> 40 <ul>
41 <li><a href="manual.html#introduction">Introduction</a></li> 41 <li><a href="manual.html#introduction">Introduction</a></li>
42 <li><a href="manual.html#building">Building</a></li>
42 <li><a href="manual.html#installation">Installation</a></li> 43 <li><a href="manual.html#installation">Installation</a></li>
43 <li><a href="manual.html#reference">Reference</a></li> 44 <li><a href="manual.html#reference">Reference</a></li>
44 </ul> 45 </ul>
@@ -94,7 +95,7 @@ attrdir (".")
94<div id="about"> 95<div id="about">
95 <p><a href="http://validator.w3.org/check?uri=referer"> 96 <p><a href="http://validator.w3.org/check?uri=referer">
96 <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> 97 <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
97 <p><small>$Id: examples.html,v 1.5 2006/03/14 14:07:55 carregal Exp $</small></p> 98 <p><small>$Id: examples.html,v 1.6 2007/05/08 19:23:12 carregal Exp $</small></p>
98</div> <!-- id="about" --> 99</div> <!-- id="about" -->
99 100
100</div> <!-- id="container" --> 101</div> <!-- id="container" -->
diff --git a/doc/us/index.html b/doc/us/index.html
index ea17303..c48b19a 100644
--- a/doc/us/index.html
+++ b/doc/us/index.html
@@ -71,25 +71,23 @@ the underlying directory structure and file attributes.</p>
71 71
72<h2><a name="status"></a>Status</h2> 72<h2><a name="status"></a>Status</h2>
73 73
74<p>Current version is 1.2.1. It was developed for both Lua 5.0 and Lua 5.1.</p> 74<p>Current version is 1.2.1. It was developed for Lua 5.1.</p>
75 75
76<h2><a name="download"></a>Download</h2> 76<h2><a name="download"></a>Download</h2>
77 77
78<p>LuaFileSystem source can be downloaded from its 78<p>LuaFileSystem source can be downloaded from its
79<a href="http://luaforge.net/projects/luafilesystem/files">Lua Forge</a> 79<a href="http://luaforge.net/projects/luafilesystem/files">Lua Forge</a>
80page. If you are using 80page. If you are using
81<a href="http://luabinaries.luaforge.net">LuaBinaries</a> 5.0.2 Release 2 81<a href="http://luabinaries.luaforge.net">LuaBinaries</a> 5.1.2 a Windows binary
82a Windows binary version of LuaFileSystem can be found at the same 82version of LuaFileSystem can be found at the same LuaForge page.</p>
83LuaForge page.</p>
84
85 83
86<h2><a name="history"></a>History</h2> 84<h2><a name="history"></a>History</h2>
87 85
88<dl class="history"> 86<dl class="history">
89 <dt><strong>Version 1.2.1</strong> [?/Jun/2006]</dt> 87 <dt><strong>Version 1.2.1</strong> [08/May/2007]</dt>
90 <dd> 88 <dd>
91 <ul> 89 <ul>
92 <li>adapted to work on both Lua 5.0 and Lua 5.1</li> 90 <li>compatible only with Lua 5.1 (Lua 5.0 support was dropped)</li>
93 </ul> 91 </ul>
94 </dd> 92 </dd>
95 93
@@ -141,7 +139,7 @@ Comments are welcome!</p>
141<div id="about"> 139<div id="about">
142 <p><a href="http://validator.w3.org/check?uri=referer"> 140 <p><a href="http://validator.w3.org/check?uri=referer">
143 <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> 141 <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
144 <p><small>$Id: index.html,v 1.34 2006/07/24 01:19:42 tomas Exp $</small></p> 142 <p><small>$Id: index.html,v 1.35 2007/05/08 19:23:12 carregal Exp $</small></p>
145</div> <!-- id="about" --> 143</div> <!-- id="about" -->
146 144
147</div> <!-- id="container" --> 145</div> <!-- id="container" -->
diff --git a/doc/us/license.html b/doc/us/license.html
index 6bb4aaa..8c89ca3 100644
--- a/doc/us/license.html
+++ b/doc/us/license.html
@@ -39,6 +39,7 @@
39 <li><a href="manual.html">Manual</a> 39 <li><a href="manual.html">Manual</a>
40 <ul> 40 <ul>
41 <li><a href="manual.html#introduction">Introduction</a></li> 41 <li><a href="manual.html#introduction">Introduction</a></li>
42 <li><a href="manual.html#building">Building</a></li>
42 <li><a href="manual.html#installation">Installation</a></li> 43 <li><a href="manual.html#installation">Installation</a></li>
43 <li><a href="manual.html#reference">Reference</a></li> 44 <li><a href="manual.html#reference">Reference</a></li>
44 </ul> 45 </ul>
@@ -84,7 +85,7 @@ Ierusalimschy, Andr&eacute; Carregal and Tom&aacute;s Guisasola.
84The implementation is not derived from licensed software.</p> 85The implementation is not derived from licensed software.</p>
85 86
86<hr/> 87<hr/>
87<p>Copyright &copy; 2004-2006 The Kepler Project.</p> 88<p>Copyright &copy; 2004-2007 The Kepler Project.</p>
88 89
89<p>Permission is hereby granted, free of charge, to any person 90<p>Permission is hereby granted, free of charge, to any person
90obtaining a copy of this software and associated documentation 91obtaining a copy of this software and associated documentation
@@ -113,7 +114,7 @@ SOFTWARE.</p>
113<div id="about"> 114<div id="about">
114 <p><a href="http://validator.w3.org/check?uri=referer"> 115 <p><a href="http://validator.w3.org/check?uri=referer">
115 <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> 116 <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
116 <p><small>$Id: license.html,v 1.9 2006/03/14 14:07:55 carregal Exp $</small></p> 117 <p><small>$Id: license.html,v 1.10 2007/05/08 19:23:12 carregal Exp $</small></p>
117</div><!-- id="about" --> 118</div><!-- id="about" -->
118 119
119</div><!-- id="container" --> 120</div><!-- id="container" -->
diff --git a/doc/us/manual.html b/doc/us/manual.html
index 441209f..e08bf09 100644
--- a/doc/us/manual.html
+++ b/doc/us/manual.html
@@ -67,11 +67,10 @@ the underlying directory structure and file attributes.</p>
67<h2><a name="building"></a>Building</h2> 67<h2><a name="building"></a>Building</h2>
68 68
69<p> 69<p>
70LuaFileSystem could be built to Lua 5.0 or to Lua 5.1. 70LuaFileSystem should be built with Lua 5.1 so the language library
71In both cases, 71and header files for the target version must be installed properly.
72the language library and headers files for the target version
73must be installed properly.
74</p> 72</p>
73
75<p> 74<p>
76LuaFileSystem offers a Makefile and a separate configuration file, 75LuaFileSystem offers a Makefile and a separate configuration file,
77<code>config</code>, 76<code>config</code>,
@@ -79,15 +78,12 @@ which should be edited to suit your installation before runnig
79<code>make</code>. 78<code>make</code>.
80The file has some definitions like paths to the external libraries, 79The file has some definitions like paths to the external libraries,
81compiler options and the like. 80compiler options and the like.
82One important definition is the version of Lua language,
83which is not obtained from the installed software.
84</p> 81</p>
85 82
86<h2><a name="installation"></a>Installation</h2> 83<h2><a name="installation"></a>Installation</h2>
87 84
88<p>The LuaFileSystem compiled binary should be copied to a directory in your 85<p>The LuaFileSystem compiled binary should be copied to a directory in your
89<a href="http://www.lua.org/manual/5.1/manual.html#pdf-package.cpath">C path</a>. 86<a href="http://www.lua.org/manual/5.1/manual.html#pdf-package.cpath">C path</a>.</p>
90Lua 5.0 users should also install <a href="http://www.keplerproject.org/compat">Compat-5.1</a>.</p>
91 87
92<p>Windows users can use the binary version of LuaFileSystem 88<p>Windows users can use the binary version of LuaFileSystem
93(<code>lfs.dll</code>) available at 89(<code>lfs.dll</code>) available at
@@ -232,7 +228,7 @@ LuaFileSystem offers the following functions:
232<div id="about"> 228<div id="about">
233 <p><a href="http://validator.w3.org/check?uri=referer"> 229 <p><a href="http://validator.w3.org/check?uri=referer">
234 <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> 230 <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
235 <p><small>$Id: manual.html,v 1.33 2006/07/24 01:19:42 tomas Exp $</small></p> 231 <p><small>$Id: manual.html,v 1.34 2007/05/08 19:23:12 carregal Exp $</small></p>
236</div> <!-- id="about" --> 232</div> <!-- id="about" -->
237 233
238</div> <!-- id="container" --> 234</div> <!-- id="container" -->
diff --git a/src/lfs.c b/src/lfs.c
index e361bd6..13c014e 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -14,7 +14,7 @@
14** lfs.touch (filepath [, atime [, mtime]]) 14** lfs.touch (filepath [, atime [, mtime]])
15** lfs.unlock (fh) 15** lfs.unlock (fh)
16** 16**
17** $Id: lfs.c,v 1.35 2006/12/04 15:28:53 mascarenhas Exp $ 17** $Id: lfs.c,v 1.36 2007/05/08 19:23:12 carregal Exp $
18*/ 18*/
19 19
20#include <errno.h> 20#include <errno.h>
@@ -554,7 +554,7 @@ static int file_info (lua_State *L) {
554*/ 554*/
555static void set_info (lua_State *L) { 555static void set_info (lua_State *L) {
556 lua_pushliteral (L, "_COPYRIGHT"); 556 lua_pushliteral (L, "_COPYRIGHT");
557 lua_pushliteral (L, "Copyright (C) 2003-2006 Kepler Project"); 557 lua_pushliteral (L, "Copyright (C) 2003-2007 Kepler Project");
558 lua_settable (L, -3); 558 lua_settable (L, -3);
559 lua_pushliteral (L, "_DESCRIPTION"); 559 lua_pushliteral (L, "_DESCRIPTION");
560 lua_pushliteral (L, "LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution"); 560 lua_pushliteral (L, "LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution");
diff --git a/src/lfs.def b/src/lfs.def
index 55ec688..dfe5c59 100644
--- a/src/lfs.def
+++ b/src/lfs.def
@@ -1,5 +1,5 @@
1LIBRARY lfs.dll 1LIBRARY lfs.dll
2DESCRIPTION "LuaFileSystem" 2DESCRIPTION "LuaFileSystem"
3VERSION 1.2 3VERSION 1.2.1
4EXPORTS 4EXPORTS
5luaopen_lfs 5luaopen_lfs