This commit is contained in:
@@ -675,7 +675,10 @@ auto encrypt_provider::process_directory_entry(
|
|||||||
file_db_->get_directory_api_path(current_source_path, dir_api_path);
|
file_db_->get_directory_api_path(current_source_path, dir_api_path);
|
||||||
if (res == api_error::success) {
|
if (res == api_error::success) {
|
||||||
current_api_path = dir_api_path;
|
current_api_path = dir_api_path;
|
||||||
} else if (res == api_error::directory_not_found) {
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (res == api_error::directory_not_found) {
|
||||||
i_file_db::directory_data dir_data{};
|
i_file_db::directory_data dir_data{};
|
||||||
dir_data.kdf_configs.first = dir_data.kdf_configs.second =
|
dir_data.kdf_configs.first = dir_data.kdf_configs.second =
|
||||||
cfg.kdf_cfg;
|
cfg.kdf_cfg;
|
||||||
@@ -716,11 +719,12 @@ auto encrypt_provider::process_directory_entry(
|
|||||||
event_system::instance().raise<filesystem_item_added>(
|
event_system::instance().raise<filesystem_item_added>(
|
||||||
utils::path::get_parent_api_path(current_api_path),
|
utils::path::get_parent_api_path(current_api_path),
|
||||||
current_api_path, true, function_name);
|
current_api_path, true, function_name);
|
||||||
} else {
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
throw std::runtime_error(fmt::format(
|
throw std::runtime_error(fmt::format(
|
||||||
"failed to get directory api path|{}", api_error_to_string(res)));
|
"failed to get directory api path|{}", api_error_to_string(res)));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return current_api_path;
|
return current_api_path;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user