Hi everybody,

I have a folder "artistx". This folder could be empty or not.
I would like to delete folder "artistx" and if it contains files or folder or not, i would like to delete it.
I tried like this: (I can just remove the folder if the folder is empty)

Qt Code:
  1. QString artistDirectory(path + "/" + artist);
  2. QMessageBox::information(this,"",artistDirectory);
  3. QDir directoryTodelete;
  4.  
  5.  
  6. directoryTodelete.rmpath(artistDirectory);
To copy to clipboard, switch view to plain text mode