satdump/src-cli2/process.cpp
2025-05-24 20:59:22 +02:00

16 lines
No EOL
476 B
C++

#include "process.h"
#include "products2/product.h"
#include "products2/product_process.h"
#include <filesystem>
namespace satdump
{
void processProductsOrDataset(std::string product, std::string directory)
{
if (!std::filesystem::exists(directory))
std::filesystem::create_directories(directory);
auto p = products::loadProduct(product);
satdump::products::process_product_with_handler(p, directory);
}
} // namespace satdump