- isValid: FileManager only ever returns valid FileEntries (see next point)
- construction from outside FileManager (also DirectoryEntry). It's not possible to create a useful FileEntry this way, there are no setters. This was only used in FileEntryTest.
- operator< (hypothetical callers who want to sort FileEntry*s by UID should probably be explicit about it).
The ugly part here:
- FileEntryTest was constructing dummy FileEntrys to wrap in FileEntryRef
- I changed this to use a FileManager as a factory
- but FileManager hands out *const* FileEntry*s
- so I needed to change FileEntryRef to wrap *const* FileEntry&
Fortunately this doesn't change the public APIs around FileEntryRef.
These const-ness changes look independent and could land separately / ahead of time as NFC changes, independently of isValid() and whatever we end up with for FileEntryTest.