@Harley L. Pebley
Already found it before, but i don't really know how to adopt it in the code
There's a piece of my code, loop which is checking for new files in directory.
If any of You guys, could edit this and apply function which we talking about to this, i will be very glad.
while (true)
{
if (count_files(path, ".png") > files_amount)
{
cout << "New image file has been created" << endl;
files_amount = files_amount + 1;
cout << "Current images count: " << files_amount << endl;
}
}