Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#1278 closed feature request (fixed)

filepath’s makeRelative does not work for relative directories

Reported by: mail@… Owned by: neil
Priority: normal Milestone:
Component: libraries (other) Version: 6.6
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


[I hope I’m filing this at the right place]


I’d expect

makeRelative "some/path" "some/path/a/b/c" == "a/b/c"

Instead, I get the second path back. Is that intentional?


Change History (5)

comment:1 Changed 10 years ago by neil

  • Owner set to neil
  • severity changed from normal to minor
  • Type changed from bug to feature request

hmm, looking at it, makeRelative has no generalised QuickCheck properties, and all the specific instances are on absolute paths. I'll try and come up with a patch for this that does the right thing in this situation.

comment:2 Changed 10 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

Neil's fixed this; the fix is included in both 6.6.1 and the HEAD.

comment:3 Changed 8 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:4 Changed 8 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple

comment:5 Changed 7 years ago by simonmar

  • difficulty changed from Easy (1 hr) to Easy (less than 1 hour)
Note: See TracTickets for help on using tickets.