I’m using boost::filesystem::remove_all operation to remove the content of a directory.
It removes correctly the content, but, as state by Boost Filesystem Documentation, it also removes the directory itself.
Is there an easy way to stay with the directory despite that it’s empty?
I think the best way is to iterate inside the folder and perform remove_all for each element. Example code: