I'm looking to delete a whole directory (including all it's subdirectories and files), though I might need to do copy/move operations in the same manner.
I'm using 2.8, and I was told that wxRmdir isn't recursive under this version, in other words the directory to remove needs to be empty.
So I'm looking for a way to create a recursive loop to do all that. For example
The easiest would be the delete one I presume, but for the move/copy one, you need to make sure each directory exists in the two places before copying files (as to keep the same directory structure after the whole operation)recursive function (folder)
{
for every item in folder:
if its a file delete/move/copy it
if its a directory, call the function itself on it
}
I would like to have some clues to help myself to proceed please! I have tried to inspire myself from 2.9's wxRmdir function ( http://svn.wxwidgets.org/svn/wx/wxWidge ... lename.cpp ), without much success.
Also, I'm leaving from here in a week (after which this project will be put on hold) so compiling/upgrading to 2.9 isn't really an option since I have no environment set up at all (I used wxPack).
Thanks a lot in advance!