There is one bug in checking if directory is created, and
second one in comment to this step
Change-Id: I02331ed4b40d3be9be4f217eb842a89f8b9bdfcb
bf::path shared_dir = context_->pkg_path.get() / kSharedLocation;
if (!bf::exists(shared_dir)) {
bs::error_code error;
- bf::create_directory(shared_dir);
+ bf::create_directory(shared_dir, error);
if (error) {
LOG(ERROR) << "Failed to create directory: " << shared_dir;
return false;
/**
* \brief Installation (WGT).
* Responsible for copying widgets shared/ directory into package's
- * shared/ directory for tizen widget with api version > 3.0
+ * shared/ directory for tizen widget with api version >= 3.0
*/
class StepWgtPatchStorageDirectories :
public common_installer::Step {