how to remove folders in qt
am having folder name Remote inside that folder am having another one folder. i need to delete Remote folder entirely.. i used QDir::rmdir method ,,its deleting only if the folder is empty..its not deleting if the folder contains subfolders,,can any one give me suggestion for this:confused:
Thanks in advance:o
Re: how to remove folders in qt
Make subdirectories empty before deleting them. Apply the algorithm recursively.
Re: how to remove folders in qt
First delete the contents of the folder.
Re: how to remove folders in qt
If this is folder is a temporary location, you could use QTemporaryDir instead and let it handle the cleanup.
Cheers,
_