int trap_CheckFile(lua_State *s) { const char *path; trap_args(s, "CheckFile", "s", &path); lua_pushboolean(s, sys_exists(datapath(path))); return 1; }
/** file_exists : string -> bool <doc>Deprecated : use sys_exists instead.</doc> **/ static value file_exists( value path ) { gc_enter_blocking(); bool result = sys_exists(path); gc_exit_blocking(); return alloc_bool(result); }
/** file_exists : string -> bool <doc>Deprecated : use sys_exists instead.</doc> **/ static value file_exists( value path ) { return sys_exists(path); }