<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
As I said before, the folder scan has a problem. To solve it, I
needed to do <br>
<br>
src/core-impl/collections/db/sql/SqlScqnResultProcessor.cpp:401<br>
- if( !m_foundDirectories.contains( path ) )<br>
+ if( !m_foundDirectories.contains( path +'/' ) )<br>
<br>
This is dirty. I tracked the origin of this, and it appears that in
the CollectionScanner, we check if the directory ends by '/' and if
not we add it. I guess this is done to easily add the filenames at
the end. <i>First question: is it true?</i> <br>
<br>
I think the problem comes from changing KUrl to QUrl. QUrl::path()
as no trailing slash by default it seems whereas KUrl had it. <br>
<br>
So how to solve this? Three options:<br>
1) Use my dirty hack given above<br>
2) Change the CollectionScanner to remove the trailing slash<br>
3) Change src/core-impl/collections/db/MountPointManager.cpp so
that we add a trailing slash add the end (check that it's a
directory, if no trailing slash, add one) in line 235 I would say.<br>
<br>
Please tell me what solution is better, else I'll try the 3rd one
and see what happens.<br>
<br>
Cheers<br>
Olivier <br>
<br>
<pre class="moz-signature" cols="72">--
Olivier CHURLAUD
Engineer Student at Ecole Centrale de Lyon
in Dual Degree at TU Berlin, M.Sc. Elektrotechnik
@: <a class="moz-txt-link-abbreviated" href="mailto:olivier@churlaud.com">olivier@churlaud.com</a>
tel: +49 (0)1575-2931348
in: <a class="moz-txt-link-freetext" href="http://linkedin.com/in/olivierchurlaud">http://linkedin.com/in/olivierchurlaud</a>
web: <a class="moz-txt-link-freetext" href="http://olivier.churlaud.com">http://olivier.churlaud.com</a> </pre>
</body>
</html>