From 327acf788fd2a28436bcc8f4848a3a2819fa1ca8 Mon Sep 17 00:00:00 2001 From: mascarenhas Date: Wed, 3 Jun 2009 20:53:55 +0000 Subject: updated docs for lfs.dir --- doc/us/manual.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'doc') 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:
Returns a string with the current working directory or nil plus an error string.
-
lfs.dir (path)
+
iter, dir_obj = lfs.dir (path)
Lua iterator over the entries of a given directory. - Each time the iterator is called it returns a directory entry's name as a string, or - 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.
@@ -261,7 +262,7 @@ LuaFileSystem offers the following functions:

Valid XHTML 1.0!

-

$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 $

-- cgit v1.2.3-55-g6feb