Hmmm... to delete on a local pc a dir recursive .... i not write 200 feet code...

Qt Code:
  1. /* remove dir recursive */
  2.  
  3. void DownDir_RM(const QString d)
  4.  
  5. {
  6.  
  7. QDir dir(d);
  8.  
  9. if (dir.exists())
  10.  
  11. {
  12.  
  13. const QFileInfoList list = dir.entryInfoList();
  14.  
  15.  
  16. for (int l = 0; l < list.size(); l++)
  17.  
  18. {
  19.  
  20. fi = list.at(l);
  21.  
  22. if (fi.isDir() && fi.fileName() != "." && fi.fileName() != "..")
  23.  
  24. DownDir_RM(fi.absoluteFilePath());
  25.  
  26. else if (fi.isFile())
  27.  
  28. {
  29.  
  30. bool ret = qt_unlink(fi.absoluteFilePath());
  31.  
  32. if (!ret) {
  33.  
  34. //////Api_Log("Can't remove: " + fi.absoluteFilePath() + " (write-protect?)");
  35. }
  36.  
  37. }
  38.  
  39.  
  40.  
  41. }
  42.  
  43. dir.rmdir(d);
  44.  
  45.  
  46.  
  47. }
  48.  
  49. }
To copy to clipboard, switch view to plain text mode 

My problem is to delete on remote server file and path.....

to delete dir i and file i have only a class ....

new QHttp();
QHttpRequestHeader header("DELETE", pathorfile ,1,1); /* header */

http://www.webdav.org/specs/rfc2518....ection.8.6.2.1

Qt Code:
  1. DavDelete *lismix = new DavDelete(dbdav,anextpath);
  2.  
  3. lismix->SetPosition(now);
  4.  
  5. connect(lismix, SIGNAL(WarningMsg(QString)), this, SLOT(ShowMessageWarning(QString)));
  6.  
  7. connect(lismix, SIGNAL(ConChain(int)), this, SLOT(CodaRemove(int)));
To copy to clipboard, switch view to plain text mode 

and i have only QStringList from file and Dir or a domdocument like this...
http://ppk.ciz.ch/qt_c++/davinfo.xml

to display tree folder like mc gui....