[MessagingEmail] fix with remove directory from temp
authorLukasz Bardeli <l.bardeli@samsung.com>
Thu, 14 May 2015 05:32:50 +0000 (07:32 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Thu, 14 May 2015 13:52:12 +0000 (22:52 +0900)
[Verification] code compiles without error

Change-Id: I0f00142f2873c0c65ce3cf6eba3b84dbbdfd833e
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
src/messaging/message.cc

index 6406aa6d30215cc9d9693a74cecf743019c2d203..797c527f50f3b565cef414dbe9a307a74d6714f1 100644 (file)
@@ -440,7 +440,7 @@ PlatformResult copyFileToTemp(const std::string& sourcePath, std::string* result
 
 PlatformResult removeDirFromTemp(const std::string& dirPath)
 {
-    if(EINA_TRUE != ecore_file_rmdir(dirPath.c_str())) {
+    if(EINA_TRUE != ecore_file_recursive_rm(dirPath.c_str())) {
       return PlatformResult(ErrorCode::UNKNOWN_ERR, "Unknown error while deleting temp directory.");
     }
     return PlatformResult(ErrorCode::NO_ERROR);