If you're using C++17 the filesystem functions will let you parse files from a given directory. eg
#include <filesystem>
#include <iostream>
for (const auto& file : std::filesystem::directory_iterator("assets/images"))
{
std::cout << file.path() << std::endl;
}
You can do your texture loading with file.path() if it's a suitable image. It might also be worth checking out a resource manager (https://github.com/SFML/SFML/wiki/Source%3A-Smart-ResourceManager) if you have a lot of files.