return -1;
}
- if (!bf::exists(sha256_info)) {
+ if (!exist(sha256_info)) {
status = "restore";
return -1;
}
return -1;
}
- if (!bf::exists(sha256_info)) {
+ if (!exist(sha256_info)) {
status = "restore";
return -1;
}
bool isExist = false;
for (auto& bck : bf::recursive_directory_iterator(current_tac)) {
std::string bck_path = bck.path().string();
- if (bf::exists(bck_path) && bf::is_directory(bck_path) && strstr(bck_path.c_str(), ".bck") == NULL) {
+ if (exist(bck_path) && bf::is_directory(bck_path) && strstr(bck_path.c_str(), ".bck") == NULL) {
isExist = true;
break;
}
}
std::string runtimesDir = concatPath(rootPath, "bin/runtimes");
- if (bf::exists(runtimesDir)) {
+ if (exist(runtimesDir)) {
char buffer[128];
sprintf(buffer, "(tizen|linux|unix|base|any)(.\\d.\\d.\\d)?(-%s)?", ARCHITECTURE_IDENTIFIER);
std::regex pattern(buffer);