Ticket #1278 (closed feature request: fixed)

Opened 6 years ago

Last modified 4 years ago

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

Changed 6 years ago by neil

  • owner set to neil
  • type changed from bug to feature request
  • severity changed from normal to minor

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.

Changed 6 years ago by igloo

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

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

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple

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.