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: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

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 10 years ago by neil

Owner: set to neil
severity: normalminor
Type: bugfeature 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: fixed
Status: newclosed

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

comment:3 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:4 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple

comment:5 Changed 7 years ago by simonmar

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