Dir.makePath
handles ..
in the sub_path differently per-platform
#18452
Labels
bug
Observed behavior contradicts documented or intended behavior
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
docs
os-linux
os-windows
standard library
This issue involves writing Zig code for the standard library.
Milestone
Zig Version
0.12.0-dev.2018+9a56228c2
Steps to Reproduce and Observed Behavior
From a test in #17499 (cc @rootbeer):
./first/A
,./first/B
,./first/C
,./second
, and./third
directories)first/../second
being treated as different fromsecond
(i.e...
are not resolved before passing the path tomkdirat
)./first/C
)..
being collapsed/resolved duringsliceToPrefixedFilePathW
before being passed toNtCreateFile
(related: Relative paths on Windows: when to resolve . and .. ? #4659)Expected Behavior
All platforms to have similar behavior
The text was updated successfully, but these errors were encountered: