Skip to content

Commit 50dbd00

Browse files
authored
Merge pull request #5457 from myk002/myk_listdir
canonicalize slashes in output of dfhack.filesystem.listdir
2 parents 5b62905 + 9933825 commit 50dbd00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/LuaApi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3176,7 +3176,7 @@ static int filesystem_listdir(lua_State *L)
31763176
for(size_t i=0;i<files.size();i++)
31773177
{
31783178
lua_pushinteger(L,i+1);
3179-
lua_pushstring(L,files[i].string().c_str());
3179+
lua_pushstring(L,Filesystem::as_string(files[i]).c_str());
31803180
lua_settable(L,-3);
31813181
}
31823182
return 1;

0 commit comments

Comments
 (0)