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

Ticket #2081 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

tango.io.Path.join doesn't work correctly

Reported by: doob Assigned to: mwarning
Priority: major Milestone: 1.0
Component: Tango Version: 0.99.9 Kai
Keywords: Cc:

Description

If the first argument to tango.io.Path.join has a trailing path separator the end result will contain a duplicated path separators. Example:

join("foo/bar/", "/asd.txt")

Results in "foo/bar//asd.txt" and not the expected "foo/bar/asd.txt".

Attachments

Path.d.diff (452 bytes) - added by doob on 10/10/11 18:08:02.

Change History

10/10/11 18:08:02 changed by doob

  • attachment Path.d.diff added.

10/15/11 23:50:17 changed by mwarning

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

(In [5684]) fixes #2081 :: tango.io.Path.join doesn't work correctly; thanks doob