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:
{ if (xx.size() == 0) { return xx; } QStringList newreversed; newreversed.clear(); bool walking = true; int o = xx.size(); for (;walking;) { o--; /* size 1 goto 0 ; size 2 start on 1 end on 0 */ newreversed.append(xx.at(o)); if (o == 0) { walking = false; } } return newreversed; }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
Bookmarks