title: C++ Delete all files and subfolders but keep the directory itself
body: <p>I need to delete everything in my temporary folder. I know I can use <code>filesystem::remove_all</code> and <code>filesystem::remove_all_dir</code> but that would mean the program will also delete the temp folder itself which is not what I want of course. I couldn't find an answer for this that was C++ so if you guys could help, that'd be nice.</p>
  
  <p>Thanks!</p>