mirror of
https://github.com/simon987/sist2.git
synced 2025-12-15 08:19:06 +00:00
handle .tgz #44, ignore files inside archives for stats page
This commit is contained in:
@@ -24,6 +24,10 @@ typedef struct {
|
||||
|
||||
void fill_tables(cJSON *document, UNUSED(const char uuid_str[UUID_STR_LEN])) {
|
||||
|
||||
if (cJSON_GetObjectItem(document, "parent") != NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
const char *json_path = cJSON_GetObjectItem(document, "path")->valuestring;
|
||||
char *path = malloc(strlen(json_path) + 1);
|
||||
strcpy(path, json_path);
|
||||
|
||||
Reference in New Issue
Block a user