forked from enlightenment/efl
parent
d7997fe020
commit
0c55f79188
|
@ -124,7 +124,14 @@ ecore_file_download(const char *url, const char *dst,
|
|||
int (*progress_cb)(void *data, const char *file, long int dltotal, long int dlnow, long int ultotal, long int ulnow),
|
||||
void *data)
|
||||
{
|
||||
if (!ecore_file_is_dir(ecore_file_dir_get((char *)dst))) return 0;
|
||||
char *dir = ecore_file_dir_get(dst);
|
||||
|
||||
if (!ecore_file_is_dir(dir))
|
||||
{
|
||||
free(dir);
|
||||
return 0;
|
||||
}
|
||||
free(dir);
|
||||
if (ecore_file_exists(dst)) return 0;
|
||||
|
||||
/* FIXME: Add handlers for http and ftp! */
|
||||
|
|
Loading…
Reference in New Issue