I must delete file and collection (folder on remote server Webdav) i read file and dir on separate list
from level 0 to infinity down ...
Now to begin to delete file and Dir i must beginn from last level down
and i reverse the list so.....


Qt Code:
  1. QStringList ReverseList( QStringList xx )
  2.  
  3. {
  4.  
  5. if (xx.size() == 0) {
  6.  
  7. return xx;
  8.  
  9. }
  10.  
  11. QStringList newreversed;
  12.  
  13. newreversed.clear();
  14.  
  15. bool walking = true;
  16.  
  17. int o = xx.size();
  18.  
  19. for (;walking;) {
  20.  
  21. o--; /* size 1 goto 0 ; size 2 start on 1 end on 0 */
  22.  
  23. newreversed.append(xx.at(o));
  24.  
  25. if (o == 0) {
  26.  
  27. walking = false;
  28.  
  29. }
  30.  
  31. }
  32.  
  33. return newreversed;
  34.  
  35. }
To copy to clipboard, switch view to plain text mode 

I suppose and i see now is very slow the action why?
is ther a other method to reverse a list?...

If You have a remote webdav dir ..... can you test the application?
curl -O http://ppk.ciz.ch/qt_c++/webdavdir.tar.gz
tar -zxvf w* && cd w*
qmake a.pro && make
./webdav