MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / FileExists

Method FileExists

src/lua/LuaVFS.cpp:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94//============================================================================//
95
96int LuaVFS::FileExists(lua_State* L) {
97 const char* path = luaL_checkstring(L, 1);
98 std::string modes = luaL_optstring(L, 2, GetReadFilter(path, L));
99 modes = BzVFS::allowModes(modes, L2ES(L)->vfsModes->readAllowed);
100
101 lua_pushboolean(L, bzVFS.fileExists(path, modes));
102
103 return 1;
104}
105
106
107//============================================================================//

Callers

nothing calls this directly

Calls 4

GetReadFilterFunction · 0.85
L2ESFunction · 0.85
lua_pushbooleanFunction · 0.50
fileExistsMethod · 0.45

Tested by

no test coverage detected