summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Mascarenhas <mascarenhas@acm.org>2012-10-01 11:18:09 -0300
committerFabio Mascarenhas <mascarenhas@acm.org>2012-10-01 11:18:09 -0300
commitcfd424a9907fac8c5e8c06a4b88b5f85eee41624 (patch)
treedfb26aca6e3df31401169202be402430aeb0bdd7
parentfcdf88d43eae3afdee389e7dc869e8d6458d8bbe (diff)
downloadluafilesystem-cfd424a9907fac8c5e8c06a4b88b5f85eee41624.tar.gz
luafilesystem-cfd424a9907fac8c5e8c06a4b88b5f85eee41624.tar.bz2
luafilesystem-cfd424a9907fac8c5e8c06a4b88b5f85eee41624.zip
update for lfs 1.6.0
-rw-r--r--index.html9
-rw-r--r--manual.html25
2 files changed, 25 insertions, 9 deletions
diff --git a/index.html b/index.html
index 9798404..6d7072b 100644
--- a/index.html
+++ b/index.html
@@ -71,7 +71,8 @@ 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.5.0. It was developed for Lua 5.1.</p> 74<p>Current version is 1.6.0. It was developed for Lua 5.1 but also
75 works with Lua 5.2.</p>
75 76
76<h2><a name="download"></a>Download</h2> 77<h2><a name="download"></a>Download</h2>
77 78
@@ -82,6 +83,12 @@ page.</p>
82<h2><a name="history"></a>History</h2> 83<h2><a name="history"></a>History</h2>
83 84
84<dl class="history"> 85<dl class="history">
86 <dt><strong>Version 1.6.0</strong> [26/Sep/2012]</dt>
87 <li>getcwd fix for Android</li>
88 <li>support for Lua 5.2</li>
89 <li>add lfs.link</li>
90 <li>other bug fixes</li>
91
85 <dt><strong>Version 1.5.0</strong> [20/Oct/2009]</dt> 92 <dt><strong>Version 1.5.0</strong> [20/Oct/2009]</dt>
86 <li>Added explicit next and close methods to second return value of lfs.dir 93 <li>Added explicit next and close methods to second return value of lfs.dir
87(the directory object), for explicit iteration or explicit closing.</li> 94(the directory object), for explicit iteration or explicit closing.</li>
diff --git a/manual.html b/manual.html
index aa51b73..996dc1f 100644
--- a/manual.html
+++ b/manual.html
@@ -172,12 +172,14 @@ LuaFileSystem offers the following functions:
172 Returns <code>true</code> in case of success or <code>nil</code> plus an 172 Returns <code>true</code> in case of success or <code>nil</code> plus an
173 error string.</dd> 173 error string.</dd>
174 174
175 <dt><a name="chdir"></a><strong><code>lfs.lock_dir(path)</code></strong></dt> 175 <dt><a name="chdir"></a><strong><code>lfs.lock_dir(path, [seconds_stale])</code></strong></dt>
176 <dd>Creates a lockfile (called lockfile.lfs) in <code>path</code> if it does not 176 <dd>Creates a lockfile (called lockfile.lfs) in <code>path</code> if it does not
177 exist and returns the lock. 177 exist and returns the lock. If the lock already exists checks if
178 To free the the lock call <code>lock:free()</code>. <br/> 178 it's stale, using the second parameter (default for the second
179 parameter is <code>INT_MAX</code>, which in practice means the lock will never
180 be stale. To free the the lock call <code>lock:free()</code>. <br/>
179 In case of any errors it returns nil and the error message. In 181 In case of any errors it returns nil and the error message. In
180 particular, if the lock exists it returns the 182 particular, if the lock exists and is not stale it returns the
181 "File exists" message.</dd> 183 "File exists" message.</dd>
182 184
183 <dt><a name="getcwd"></a><strong><code>lfs.currentdir ()</code></strong></dt> 185 <dt><a name="getcwd"></a><strong><code>lfs.currentdir ()</code></strong></dt>
@@ -204,6 +206,13 @@ LuaFileSystem offers the following functions:
204 Returns <code>true</code> if the operation was successful; in 206 Returns <code>true</code> if the operation was successful; in
205 case of error, it returns <code>nil</code> plus an error string. 207 case of error, it returns <code>nil</code> plus an error string.
206 </dd> 208 </dd>
209
210 <dt><a name="link"></a><strong><code>lfs.link (old, new[, symlink])</code></strong></dt>
211 <dd>Creates a link. The first argument is the object to link to
212 and the second is the name of the link. If the optional third
213 argument is true, the link will by a symbolic link (by default, a
214 hard link is created).
215 </dd>
207 216
208 <dt><a name="mkdir"></a><strong><code>lfs.mkdir (dirname)</code></strong></dt> 217 <dt><a name="mkdir"></a><strong><code>lfs.mkdir (dirname)</code></strong></dt>
209 <dd>Creates a new directory. The argument is the name of the new 218 <dd>Creates a new directory. The argument is the name of the new
@@ -219,15 +228,15 @@ LuaFileSystem offers the following functions:
219 228
220 <dt><a name="setmode"></a><strong><code>lfs.setmode (file, mode)</code></strong></dt> 229 <dt><a name="setmode"></a><strong><code>lfs.setmode (file, mode)</code></strong></dt>
221 <dd>Sets the writing mode for a file. The mode string can be either <code>binary</code> or <code>text</code>. 230 <dd>Sets the writing mode for a file. The mode string can be either <code>binary</code> or <code>text</code>.
222 Returns the previous mode string for the file. This function is only available in Windows, so you may want to make sure that 231 Returns the previous mode string for the file. On non-Windows platforms, where the two modes are identical,
223 <code>lfs.setmode</code> exists before using it. 232 setting the mode has no effect, and the mode is always returned as <code>binary</code>.
224 </dd> 233 </dd>
225 234
226 <dt><a name="symlinkattributes"></a><strong><code>lfs.symlinkattributes (filepath [, aname])</code></strong></dt> 235 <dt><a name="symlinkattributes"></a><strong><code>lfs.symlinkattributes (filepath [, aname])</code></strong></dt>
227 <dd>Identical to <a href="#attributes">lfs.attributes</a> except that 236 <dd>Identical to <a href="#attributes">lfs.attributes</a> except that
228 it obtains information about the link itself (not the file it refers to). 237 it obtains information about the link itself (not the file it refers to).
229 This function is not available in Windows so you may want to make sure that 238 On Windows this function does not yet support links, and is identical to
230 <code>lfs.symlinkattributes</code> exists before using it. 239 <code>lfs.attributes</code>.
231 </dd> 240 </dd>
232 241
233 <dt><a name="touch"></a><strong><code>lfs.touch (filepath [, atime [, mtime]])</code></strong></dt> 242 <dt><a name="touch"></a><strong><code>lfs.touch (filepath [, atime [, mtime]])</code></strong></dt>