1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-18 08:15:14 +00:00

Regularly cleanup files in the httptemp directory (#343)

* Regularly cleanup files in the httptemp directory

* Add scan http temp dir default configuration

* Fix mem leak for scan httptemp dir

* Modify int to gint64
This commit is contained in:
feiniks
2020-05-20 18:36:38 +08:00
committed by GitHub
parent cb696853c4
commit 50882b41f4
3 changed files with 111 additions and 0 deletions

View File

@@ -20,6 +20,13 @@ fileserver_config_get_integer(GKeyFile *config, char *key, GError **error)
return g_key_file_get_integer (config, group, key, error);
}
int
fileserver_config_get_int64(GKeyFile *config, char *key, GError **error)
{
const char *group = get_group_name(config);
return g_key_file_get_int64 (config, group, key, error);
}
char *
fileserver_config_get_string(GKeyFile *config, char *key, GError **error)
{