[PATCH] Renaming entries with KDirLister

Jeff Mitchell kde-dev at emailgoeshere.com
Tue Jul 31 21:23:38 BST 2007


One extra thing about this patch...

In some cases this patch will not suffice (for instance, when the URL 
needs to be updated as a result of the "display name" change but is not 
the same (just encoded) as the new display name.  Since kioslaves can't 
send the results of a rename call as a UDSEntry with the new 
information, there's little (other than some major restructuring) to do 
about this other than forcing a re-list with KDirNotify::emitFileAdded.

So this race condition does still need to get figured out, and anyone 
that is willing to help with that would be much appreciated.  The source 
code where this race condition is seen is in SVN at 
/home/kde/trunk/extragear/multimedia/amarok/src/portabledevices/kioslaves/pmpkioslave.cpp 
currently at lines 192 (the finished() eventually triggers a 
KDirNotify::emitFileRenamed and 193.

Thanks,
Jeff




More information about the kde-core-devel mailing list