From a6013016f16adef9a74484c0f15d98f8a87a7ea4 Mon Sep 17 00:00:00 2001 From: mjentsch Date: Sun, 21 Sep 2014 00:11:07 +0200 Subject: [PATCH] Ensure that download directory exists --- telegram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/telegram.c b/telegram.c index 55862bc..d0304b7 100755 --- a/telegram.c +++ b/telegram.c @@ -322,6 +322,7 @@ struct dc *telegram_get_working_dc(struct telegram *instance) void telegram_restore_session(struct telegram *instance) { g_mkdir_with_parents(instance->config_path, 0700); + g_mkdir_with_parents(instance->download_path, 0700); instance->auth = read_auth_file(instance->auth_path); instance->proto = read_state_file(instance->state_path); read_secret_chat_file (instance, instance->secret_path);