I'm in a hurry and don't have time to figure out how to simple calculate the number of files in a given subdirectory. I can get the files in a root directory, but need to also calculate any given number of subdirectory totals as well. Does anyone know of code to approach this?
For some reason sizeof, when used with readdir isn't working the way I need it because it's not doing recursion.