Page MenuHomePhabricator

Add a method for determining the relative path
Needs ReviewPublic

Authored by joshuaspence on Jun 25 2015, 10:12 AM.
Tags
None
Referenced Files
F18826935: D13424.id.diff
Oct 24 2025, 6:39 AM
F18821707: D13424.diff
Oct 23 2025, 1:21 AM
F18789349: D13424.id32507.diff
Oct 15 2025, 9:14 AM
F18768846: D13424.id32817.diff
Oct 8 2025, 5:37 AM
F18725484: D13424.diff
Sep 30 2025, 5:12 AM
F18651845: D13424.id.diff
Sep 21 2025, 5:41 AM
F18644684: D13424.id32817.diff
Sep 19 2025, 5:45 AM
F18589068: D13424.diff
Sep 12 2025, 2:19 AM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Summary

Adds a Filesystem::relativePath method for determining the relative path between two specified paths. The implementation was based on a post on StackOverflow.

I am using this method in a third party library, but I figured that it is potentially useful enough to be submitted upstream.

Test Plan

Added unit tests.

Diff Detail

Repository
rPHU libphutil
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 7180
Build 7405: [Placeholder Plan] Wait for 30 Seconds
Build 7404: arc lint + arc unit