DelDirTree works with normal Win32 paths below the directory it is given, 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.
Measured on Delphi 12 with a probe, against revision [r2567]: a directory with a subdirectory data (containing y.txt), a subdirectory data. (containing x.txt) and a file f.. DelDirTree with the normal name of that directory and RaiseException = True deleted data and data\y.txt, left data., data.\x.txt and f. behind, and raised EOSError "The directory is not empty (145) calling RemoveDirectory(...)" for the directory itself. The message does not name the entries it could not delete. Nothing outside the tree was touched.
Given the \\?\ name of the directory, DelDirTree deletes such a tree; the tests of [bugs:#120] clean up that way.
Possible fix: the same as for [bugs:#120], \\?\ names internally.
Fixed in revision [r2568].
Related
Commit: [r2568]