On Wed, 16 Apr 2025 17:43:58 GMT, Alan Bateman <al...@openjdk.org> wrote:

>> I am not sure what you mean here as file paths _can_ contain (s) space(s).
>
> The question is about directories in the path that end with space. So yes, 
> the file path may contain spaces but the proposed check is only looking at 
> the end last element.

>From experimentation with C++ code is VS, it appears that `CreateDirectoryW` 
>will create a directory with either a leading or trailing space in its name, 
>whereas `createFileW` will create a file with a leading space in its name, but 
>a trailing space is trimmed.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24635#discussion_r2049805179

Reply via email to