1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 15:45:25 +02:00

dstore - search using canonical path

This commit is contained in:
David McKnight 2008-01-03 21:28:02 +00:00
parent 47a82b774e
commit 96c4679ca1

View file

@ -171,7 +171,17 @@ public class UniversalSearchHandler extends Thread implements ICancellableHandle
// is it an archive?
boolean isArchive = ArchiveHandlerManager.getInstance().isArchive(theFile);
String absPath = theFile.getAbsolutePath();
// use canonical path since sometimes we have symbolic links
String absPath = null;
try
{
absPath = theFile.getCanonicalPath();
}
catch (Exception e)
{
absPath = theFile.getAbsolutePath();
}
String compareStr = theFile.getName();
// is it a virtual file?