mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-24 17:14:01 +01:00
Add size to downloads json
This commit is contained in:
parent
17ec8c2e35
commit
73e28f7d62
@ -1713,6 +1713,7 @@ static uint8_t ownerapi(ws_ctx_t *ws_ctx, const char *in, const char * const use
|
|||||||
"\"date_modified\": %lu, "
|
"\"date_modified\": %lu, "
|
||||||
"\"date_created\": %lu, "
|
"\"date_created\": %lu, "
|
||||||
"\"is_dir\": %s, "
|
"\"is_dir\": %s, "
|
||||||
|
"\"size\": %lu, "
|
||||||
"\"owner\": \"%s\", "
|
"\"owner\": \"%s\", "
|
||||||
"\"group\": \"%s\", "
|
"\"group\": \"%s\", "
|
||||||
"\"perms\": \"%s\" }",
|
"\"perms\": \"%s\" }",
|
||||||
@ -1721,6 +1722,7 @@ static uint8_t ownerapi(ws_ctx_t *ws_ctx, const char *in, const char * const use
|
|||||||
st.st_mtime,
|
st.st_mtime,
|
||||||
st.st_ctime,
|
st.st_ctime,
|
||||||
S_ISDIR(st.st_mode) ? "true" : "false",
|
S_ISDIR(st.st_mode) ? "true" : "false",
|
||||||
|
S_ISDIR(st.st_mode) ? 0 : st.st_size,
|
||||||
own,
|
own,
|
||||||
grp,
|
grp,
|
||||||
perms);
|
perms);
|
||||||
|
Loading…
Reference in New Issue
Block a user