diff --git a/doc/us/manual.html b/doc/us/manual.html index ee80703..1409c40 100644 --- a/doc/us/manual.html +++ b/doc/us/manual.html @@ -186,11 +186,12 @@ LuaFileSystem offers the following functions:
nil
plus an error string.lfs.dir (path)iter, dir_obj = lfs.dir (path)nil if there are no more entries.
+ Each time the iterator is called with dir_obj it returns a directory entry's name as a string, or
+ nil if there are no more entries. You can also iterate by calling dir_obj:next(), and
+ explicitly close the directory before the iteration finished with dir_obj:close().
Raises an error if path is not a directory.
$Id: manual.html,v 1.44 2009/04/24 22:24:06 mascarenhas Exp $
+$Id: manual.html,v 1.45 2009/06/03 20:53:55 mascarenhas Exp $