From cd72f282dc6ead0e862c66040449358aa5041bd1 Mon Sep 17 00:00:00 2001 From: Ruben De Smet Date: Tue, 5 Jan 2016 19:10:28 +0100 Subject: [PATCH] POSIX: implement move file method --- src/platform/posix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/posix.c b/src/platform/posix.c index e11e8a6900..39673ab99b 100644 --- a/src/platform/posix.c +++ b/src/platform/posix.c @@ -591,8 +591,7 @@ bool platform_file_copy(const utf8 *srcPath, const utf8 *dstPath, bool overwrite bool platform_file_move(const utf8 *srcPath, const utf8 *dstPath) { - STUB(); - return 0; + return rename(srcPath, dstPath) == 0; } bool platform_file_delete(const utf8 *path)