code: function matchPath(a, b) {
          var regex = new RegExp('^' + a.join('~~'), 'i');
          return regex.test(b.join('~~'));
      }
docs: ***private functions for internal use only****** to check weather path b is subset of path a