FS#11347 by me: *dir LUA functions: luadir module

mkdir and rmdir are now in this module and not in the rockbox API
implements the 'dir' iterator to browse directories

Based on LuaFileSystem : http://www.keplerproject.org/luafilesystem

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26913 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-06-18 13:10:14 +00:00
parent d8cef9c078
commit bfd8d023db
5 changed files with 152 additions and 0 deletions

View file

@ -26,6 +26,7 @@
#include "lualib.h"
#include "rocklib.h"
#include "rockmalloc.h"
#include "luadir.h"
PLUGIN_HEADER
@ -39,6 +40,7 @@ static const luaL_Reg lualibs[] = {
{LUA_IOLIBNAME, luaopen_io},
{LUA_LOADLIBNAME, luaopen_package},
{LUA_MATHLIBNAME, luaopen_math},
{LUA_DIRLIBNAME, luaopen_luadir},
{NULL, NULL}
};