diff options
author | mascarenhas <mascarenhas> | 2009-04-24 22:24:06 +0000 |
---|---|---|
committer | mascarenhas <mascarenhas> | 2009-04-24 22:24:06 +0000 |
commit | c1eff3de6befe526c17da32210887ce38c0cb78f (patch) | |
tree | 4b926927bd0a83d92205baecc41dd1fce3c68d62 /doc | |
parent | b80d2baaccae36fbcdfd3f0e5ce41194a25e45e6 (diff) | |
download | luafilesystem-c1eff3de6befe526c17da32210887ce38c0cb78f.tar.gz luafilesystem-c1eff3de6befe526c17da32210887ce38c0cb78f.tar.bz2 luafilesystem-c1eff3de6befe526c17da32210887ce38c0cb78f.zip |
fixing lfs.lock_dir on windows to return "File exists" instead of looping, plus
documenting lfs.lock_dir
Diffstat (limited to 'doc')
-rw-r--r-- | doc/us/manual.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/us/manual.html b/doc/us/manual.html index 9d53037..ee80703 100644 --- a/doc/us/manual.html +++ b/doc/us/manual.html | |||
@@ -171,6 +171,16 @@ LuaFileSystem offers the following functions: | |||
171 | <code>path</code>.<br /> | 171 | <code>path</code>.<br /> |
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 | |||
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 | ||
177 | exist and returns the lock. If the lock already exists checks it | ||
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/> | ||
181 | In case of any errors it returns nil and the error message. In | ||
182 | particular, if the lock exists and is not stale it returns the | ||
183 | "File exists" message.</dd> | ||
174 | 184 | ||
175 | <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> |
176 | <dd>Returns a string with the current working directory or <code>nil</code> | 186 | <dd>Returns a string with the current working directory or <code>nil</code> |
@@ -251,7 +261,7 @@ LuaFileSystem offers the following functions: | |||
251 | 261 | ||
252 | <div id="about"> | 262 | <div id="about"> |
253 | <p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0!</a></p> | 263 | <p><a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0!</a></p> |
254 | <p><small>$Id: manual.html,v 1.43 2008/05/08 18:45:15 carregal Exp $</small></p> | 264 | <p><small>$Id: manual.html,v 1.44 2009/04/24 22:24:06 mascarenhas Exp $</small></p> |
255 | </div> <!-- id="about" --> | 265 | </div> <!-- id="about" --> |
256 | 266 | ||
257 | </div> <!-- id="container" --> | 267 | </div> <!-- id="container" --> |