|
Lines 967-977
namespace Beagle.Daemon.FileSystemQuerya
Link Here
|
| 967 |
if (filter.Ignore (dir, name, false)) |
967 |
if (filter.Ignore (dir, name, false)) |
| 968 |
return; |
968 |
return; |
| 969 |
|
969 |
|
| 970 |
FileAttributes attr; |
970 |
// We unconditionally assign this file a new Guid. |
| 971 |
attr = FileAttributesStore.Read (path); |
971 |
// (If it is a copy of an already-indexed file, |
| 972 |
|
972 |
// we need to clobber the old Guid.) |
| 973 |
Guid unique_id; |
973 |
Guid unique_id; |
| 974 |
unique_id = (attr != null) ? attr.UniqueId : Guid.NewGuid (); |
974 |
unique_id = Guid.NewGuid (); |
| 975 |
|
975 |
|
| 976 |
RegisterId (name, dir, unique_id); |
976 |
RegisterId (name, dir, unique_id); |
| 977 |
|
977 |
|