TDirectorySync works with normal Win32 paths, and Windows changes some names in them:
data.) is read as the one without the dot: Windows drops a single trailing dot from every segment of a path. CheckOneWay reports the files of data under data., and the files of data. are never seen; SyncOneWay does not copy them.x., x) cannot be opened, because Windows strips both from the last segment: SyncOneWay ends with EOSError "The system cannot find the file specified" from CopyFileEx.A subdirectory whose name ends in a blank works since the follow-up of [bugs:#102]. Such names can only be created with the \\?\ prefix or e.g. by a Samba server. Both cases were measured on Delphi 12 with temporary tests.
Possible fix: work with \\?\ names internally (\\?\UNC\ for shares) for the enumeration, CreateDirectory, the copy and the move, which also lifts the MAX_PATH limit; the events would keep the normal names. Until then the class doc comment says what is not supported.
Corrections and additions after a code review (the class doc comment says this since revision [r2564]):
EOSError: that was measured with no handler assigned and no file of the shorter name. Read from the code: with anOnQueryFileSynchandler it is skipped without a word, and an existing file of the shorter name in the source or destination is taken for it.data.without a siblingdataloses its files without a word, andSyncOneWaycreates an emptydatain the destination.Related
Commit: [r2564]
Fixed in revision [r2567].
Related
Commit: [r2567]