SameFileName compares two file names for equality. This is a partial, Unix-only stub: an exact case-sensitive comparison, which is correct on case-sensitive file systems. Case-insensitive platforms would need the names folded before comparing, but the stdlib has no platform-variance facility yet — system.pas hardcodes DirectorySeparator, PathSeparator and LineEnding to their Unix values — so there is nothing to key the case-folding on. When a FileNameCaseSensitive constant lands alongside the other platform constants, the case-insensitive branch can be added. e2e test asserts identical names match and differing names do not. |
||
|---|---|---|
| .. | ||
| src | ||
| project.xml | ||