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