Opened 7 years ago

Closed 7 years ago

Last modified 4 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: Difficulty: Easy (less than 1 hour)
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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

Hi,

I’d expect

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

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

Thanks

Change History (5)

comment:1 Changed 7 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 7 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 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:4 Changed 6 years ago by simonmar

  • Operating System changed from Unknown to Unknown/Multiple

comment:5 Changed 4 years ago by simonmar

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