Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #973 (closed defect: wontfix)

Opened 6 months ago

Last modified 6 months ago

FileSystem.toAbsolute() is buggy.

Reported by: Aziz Assigned to: kris
Priority: major Milestone: 0.99.6
Component: IO Version: 0.99.5 Jascha
Keywords: Cc:

Description

auto absFilePath = FileSystem.toAbsolute("../dil/src/main.d");
assert(absFilePath == "/home/aziz/dil/src/main.d"); // Fails.
Stdout(absFilePath).newline; // Prints "/home/aziz/dil/../dil/src/main.d"

Change History

03/12/08 19:12:24 changed by kris

thanks, Aziz .... I'll get on it

03/15/08 15:41:02 changed by kris

  • status changed from new to closed.
  • resolution set to wontfix.

'..' sequences are handled by tango.util.PathUtil?.normalize() instead. There's been some requests to merge that functionality into FileSystem?, but we're not sure about the coupling yet ... will chat with the other guys about this