diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2018-01-29 13:45:51 +0100 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2018-01-30 16:52:24 +0900 |
commit | 8f5029fbbc5bf776938ffea7d8115cd1c574e308 (patch) | |
tree | 7730d3e31384720bd008577e54a69e440294bd0c | |
parent | 0c96d9e8cfd1b08c1fcf97a0ac914fe94aceaa9e (diff) | |
download | efl-8f5029fbbc5bf776938ffea7d8115cd1c574e308.tar.gz |
Eio: disable the symlink code on Windows
-rw-r--r-- | src/lib/eio/eio_dir.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/eio/eio_dir.c b/src/lib/eio/eio_dir.c index 74237747a4..84c7769103 100644 --- a/src/lib/eio/eio_dir.c +++ b/src/lib/eio/eio_dir.c @@ -238,6 +238,8 @@ _eio_dir_mkdir(Ecore_Thread *thread, Eio_Dir_Copy *order, return EINA_TRUE; } +/* no symbolic link on Windows */ +#ifndef _WIN32 static Eina_Bool _eio_dir_link(Ecore_Thread *thread, Eio_Dir_Copy *order, long long *step, long long count, @@ -298,6 +300,7 @@ _eio_dir_link(Ecore_Thread *thread, Eio_Dir_Copy *order, eio_file_thread_error(&order->progress.common, thread); return EINA_FALSE; } +#endif static Eina_Bool _eio_dir_chmod(Ecore_Thread *thread, Eio_Dir_Copy *order, @@ -416,8 +419,11 @@ _eio_dir_copy_heavy(void *data, Ecore_Thread *thread) file = NULL; /* recreate link */ + /* no symbolic link on Windows */ +#ifndef _WIN32 if (!_eio_dir_link(thread, copy, &step, count, length_source, length_dest)) goto on_error; +#endif /* set directory right back */ if (!_eio_dir_chmod(thread, copy, &step, count, length_source, length_dest, EINA_FALSE)) @@ -562,8 +568,11 @@ _eio_dir_move_heavy(void *data, Ecore_Thread *thread) file = NULL; /* recreate link */ +/* no symbolic link on Windows */ +#ifndef _WIN32 if (!_eio_dir_link(thread, move, &step, count, length_source, length_dest)) goto on_error; +#endif /* set directory right back */ if (!_eio_dir_chmod(thread, move, &step, count, length_source, length_dest, EINA_TRUE)) |