Fix StepCreateStorageDirectores
[platform/core/appfw/wgt-backend.git] / src / wgt / step / filesystem / step_create_symbolic_link.cc
index cbdbb7f..a814f04 100644 (file)
@@ -42,6 +42,8 @@ bool StepCreateSymbolicLink::CreateSymlinksForApps() {
     common_installer::CreateDir(exec_path);
 
     exec_path /= bf::path(app->appid);
+    if (bf::exists(exec_path))
+      bf::remove_all(exec_path);
 
     if (strcmp(app->component_type, "uiapp") == 0) {
       bf::create_symlink(bf::path(WRT_LAUNCHER), exec_path, error);