|
|
|
@ -434,7 +434,6 @@ static int f_list_dir(lua_State *L) {
|
|
|
|
|
static int f_absolute_path(lua_State *L) { |
|
|
|
|
const char *path = luaL_checkstring(L, 1); |
|
|
|
|
char *res = realpath(path, NULL); |
|
|
|
|
//printf("DBG: f_absolute_path() %s\n", res);
|
|
|
|
|
if (!res) { return 0; } |
|
|
|
|
lua_pushstring(L, res); |
|
|
|
|
free(res); |
|
|
|
|