Quick question about the filesystem. I've made a wrapper class for the filesystem library of boost. I have made a function that scans all files and folders in a directory, this works fine; but I can not get it to also scan the folders for any more files(but it will find more folders).
This is the relevant code. In main I put FileSystem::searchDirectory(directory) which calls this function.
Also it seems that putting . or .. at the beginning of a directory causes the program to crash. ("." - works ".\folder" - doesn't work) anyone know what this is?
I have one more question though! right now I am using a map of std::string and std::vector<std::string> to index the search - this would create duplicates if I searched a folder and then a folder within that