diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2022-12-03 16:06:03 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2022-12-03 16:06:03 -0500 |
commit | 3af5bc2df5b865dcc6770d1b8ee4c8c4c6aa959f (patch) | |
tree | fb22aafcc7bd315a51299852344c69a779c315a3 /src/lpm.c | |
parent | 6152c9bf1e5842ea9ea5a86b46f1930a9bcd7c84 (diff) | |
download | lite-xl-plugin-manager-3af5bc2df5b865dcc6770d1b8ee4c8c4c6aa959f.tar.gz lite-xl-plugin-manager-3af5bc2df5b865dcc6770d1b8ee4c8c4c6aa959f.zip |
Also adding in mode.
Diffstat (limited to 'src/lpm.c')
-rw-r--r-- | src/lpm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -260,6 +260,7 @@ static int lpm_stat(lua_State *L) { #endif lua_pushinteger(L, s.st_mtime); lua_setfield(L, -2, "modified"); lua_pushinteger(L, s.st_size); lua_setfield(L, -2, "size"); + lua_pushinteger(L, s.st_mode); lua_setfield(L, -2, "mode"); if (S_ISREG(s.st_mode)) { lua_pushstring(L, "file"); } else if (S_ISDIR(s.st_mode)) { |