Support taking in a list of path segments