Page MenuHomePhabricator

Add a method for determining the relative path
Needs ReviewPublic

Authored by joshuaspence on Jun 25 2015, 10:12 AM.

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 6991
Build 7038: [Placeholder Plan] Wait for 30 Seconds
Build 7037: arc lint + arc unit