There is no C ++ built-in method for moving directory structures or list files in a directory in a cross-platform manner. It is simply not built into the language. (For good reason!)
It is best to go with a code framework, and there are many good options.
Boost file system
Apache portable runtime
Aaaand is my personal favorite - Qt
Although, if you use this, it's hard to just use part of the file system. You pretty much have to port your entire application to Qt classes.
source share