mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-24 20:33:06 +00:00
*** empty log message ***
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
package = "LuaFileSystem"
|
package = "LuaFileSystem"
|
||||||
version = "cvs-1"
|
version = "cvs-1"
|
||||||
source = {
|
source = {
|
||||||
url = "cvs://:pserver:anonymous:@cvs.luaforge.net:/cvsroot/luafilesystem"
|
url = "cvs://:pserver:anonymous:@cvs.luaforge.net:/cvsroot/luafilesystem",
|
||||||
|
cvs_tag = "HEAD"
|
||||||
}
|
}
|
||||||
description = {
|
description = {
|
||||||
summary = "File System Library for the Lua Programming Language",
|
summary = "File System Library for the Lua Programming Language",
|
||||||
@@ -18,6 +19,6 @@ dependencies = {
|
|||||||
build = {
|
build = {
|
||||||
type = "module",
|
type = "module",
|
||||||
modules = {
|
modules = {
|
||||||
lfs = "lfs.c"
|
lfs = "src/lfs.c"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
** lfs.touch (filepath [, atime [, mtime]])
|
** lfs.touch (filepath [, atime [, mtime]])
|
||||||
** lfs.unlock (fh)
|
** lfs.unlock (fh)
|
||||||
**
|
**
|
||||||
** $Id: lfs.c,v 1.44 2008/01/16 22:29:26 mascarenhas Exp $
|
** $Id: lfs.c,v 1.45 2008/01/16 22:33:24 mascarenhas Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -102,7 +102,7 @@ static int change_dir (lua_State *L) {
|
|||||||
static int get_dir (lua_State *L) {
|
static int get_dir (lua_State *L) {
|
||||||
char *path;
|
char *path;
|
||||||
if ((path = getcwd(NULL, 0)) == NULL) {
|
if ((path = getcwd(NULL, 0)) == NULL) {
|
||||||
lua_pushnil(L)
|
lua_pushnil(L);
|
||||||
lua_pushstring(L, getcwd_error);
|
lua_pushstring(L, getcwd_error);
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user