27 lines
397 B
C
27 lines
397 B
C
#pragma once
|
|
|
|
#include <lauxlib.h>
|
|
#include <lua.h>
|
|
#include <lualib.h>
|
|
|
|
/**
|
|
* @brief list of all filesystem functions
|
|
*/
|
|
extern struct luaL_Reg *womfslib;
|
|
|
|
/**
|
|
* @brief create a fs iter for lua
|
|
*
|
|
* @param L the lua state
|
|
* @return
|
|
*/
|
|
int wom_fs_dir(lua_State *L);
|
|
|
|
/**
|
|
* @brief get the type of a directory in lua
|
|
*
|
|
* @param L the lua state
|
|
* @return
|
|
*/
|
|
int wom_fs_type(lua_State *L);
|