TTreeVerify compares the two trees with normal Win32 paths, and Windows changes some names in them, as in [bugs:#120] for TDirectorySync: it drops a trailing dot from every segment of a path and a trailing dot or blank from the last one, and it takes a device name such as aux for the device.
Measured on Delphi 12 with a probe, against revision [r2567]: two trees, each with a directory data (containing y.txt), a directory data. (containing x.txt) and a file f., where data.\x.txt and f. differ. Execute raises EOSError "The system cannot find the file specified (2) calling CreateFile("...\f.")" before any result for f. is reported.
Not measured: whether the files of data. are compared as those of data once nothing stops the run first; the code reaches them through the same kind of names.
Possible fix: the same as for [bugs:#120], \\?\ names internally. The helpers for that are private to TDirectorySync in u_dzFileUtils so far and would have to be shared.
Fixed in revision [r2569].
Related
Commit: [r2569]