Unsure if it's neater, but ditto:

`resources = aug.match("#{path}/*").map { |p| get_resource(aug, p, target) }.compact.map { |r| new(r) }`