Add path-spec convenience method