Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/telegram-purple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Sprickerhof <git@jochen.sprickerhof.de>2020-05-06 13:34:06 +0300
committerBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-05-06 16:58:11 +0300
commit323cab7698e3830db797422a2ad2f6bb2678d272 (patch)
tree4728706e6219ceb81299e940757584e21d2e14a2 /telegram-base.c
parentd18d4c7a46539c37eec30fdbdbb7b56b08469f12 (diff)
Always create download dir if it does not exist
Diffstat (limited to 'telegram-base.c')
-rw-r--r--telegram-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram-base.c b/telegram-base.c
index 19b0b6c..9833bac 100644
--- a/telegram-base.c
+++ b/telegram-base.c
@@ -406,8 +406,8 @@ gchar *get_download_dir (struct tgl_state *TLS) {
dir = g_strconcat ("/tmp", G_DIR_SEPARATOR_S, "downloads", NULL);
} else {
dir = g_strconcat (TLS->base_path, G_DIR_SEPARATOR_S, "downloads", NULL);
- g_mkdir_with_parents (dir, 0700);
}
+ g_mkdir_with_parents (dir, 0700);
return dir;
}