@ all:
Is it really necessary to scan all directories below the common top level path? Wouldn't it be enough to scan all directories below the actual workspace path? I do not miss any functionality if I simply undo the changes from version r4760 where traversing via directories was introduced.
I have introduced it, because projects where the project-file is somewhere in the folder-structure of the projects where broken.
I did not introduce the ProjectDirTraverser, I just fixed this issue with it.
See
If traversing the top level directory is really necessary for some functionality of c::b which I do not use (and therefore don't miss) can't there be an project option to traverse either the workspace directory or the top level directory?
Is it at all necessary to traverse the top level directory every time you open a project?
Calculating the toplevel path has to be done every time a project is opened, or a file is added/deleted, because the project might be changed from other user, from C::B or even manually or it might have moved on the drive or to a different drive.
Projects can be shared by many people via revision control system, like C::B's projects.
And there are surely more cases, where a recalculating is needed.
But if I am correct the traverser is not needed in any of these cases.
See the
http://forums.codeblocks.org/index.php/topic,15430.msg103592.html#msg103592.
Please make further discussion about calculating the common toplevel path there.
Direct answers to questions in this thread should stay here I think.