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:
parent
47a82b774e
commit
96c4679ca1
1 changed files with 11 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Reference in a new issue