aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-12-03 16:06:03 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-12-03 16:06:03 -0500
commit3af5bc2df5b865dcc6770d1b8ee4c8c4c6aa959f (patch)
treefb22aafcc7bd315a51299852344c69a779c315a3 /src/lpm.c
parent6152c9bf1e5842ea9ea5a86b46f1930a9bcd7c84 (diff)
downloadlite-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lpm.c b/src/lpm.c
index fbb5981..5c39f41 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -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)) {