summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-21 19:22:43 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-21 19:47:35 -0200
commitcc703b619d2a12f89ad3308b797fe91591419cd5 (patch)
tree16f3d84a4a30d0e357f5c711a1d781d9a4742902
parent010b14bc3761cc3bed91a36b5fca2151caee164a (diff)
ecore_file_download_example: also unlink DST_MIME.
ecore_file_download() will refuse to download if file already exists, then we must unlink DST_MIME as done with DST before we try to download, otherwise it won't work on the second time.
-rw-r--r--src/examples/ecore/ecore_file_download_example.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/examples/ecore/ecore_file_download_example.c b/src/examples/ecore/ecore_file_download_example.c
index e57a723b12..ac020ac456 100644
--- a/src/examples/ecore/ecore_file_download_example.c
+++ b/src/examples/ecore/ecore_file_download_example.c
@@ -48,6 +48,9 @@ main(void)
48 if (ecore_file_exists(DST)) 48 if (ecore_file_exists(DST))
49 ecore_file_unlink(DST); 49 ecore_file_unlink(DST);
50 50
51 if (ecore_file_exists(DST_MIME))
52 ecore_file_unlink(DST_MIME);
53
51 start = ecore_time_get(); 54 start = ecore_time_get();
52 55
53 if (ecore_file_download(URL, DST, completion_cb, progress_cb, NULL, NULL)) 56 if (ecore_file_download(URL, DST, completion_cb, progress_cb, NULL, NULL))