I want to list all the txt files in my "Derived Data" Folder, but so far the only thing that I can find that works for macOS is glob.h which I have placed like this, that just outputs the pathname I put in.
glob_t glob_result;
glob("/Users/me/Desktop/XJ/DerivedData", GLOB_TILDE,NULL,&glob_result);
for(unsigned int i=0; i<glob_result.gl_pathc; ++i){
cout << glob_result.gl_pathv[i] << endl;
The boost/filesystem thing doesn't seem to work. Although it might be because of mac pathname styles. Is there any easier way to view all the files inside this folder on macOS?