Refacto to support src globbing into dest file