I'm trying to compare two directories and find what files are different inside. So I'm using a boost::filesystem::recursive_directory_iterator
to add all contents of each directory to respective vectors. Then I sort each vector alphabetically and start comparing paths. The problem is it's including the 'base' path and I don't want that, example:
Version1/Assets/info.txt
Version2/Assets/info.txt
Those paths are comparing different, but I want them to compare the same. To clarify, I'm not even checking the binaries yet, just the path name so far. I'd to compare them like this:
/Assets/info.txt
I've been browsing through the boost documentation for a couple hours and I'm convinced there must be an elegant solution for my problem. I realize I could have solved this a while ago by getting a substring of what I want, but there must be a less ugly way.