def _existing_templates(): suffix = '.template' templates = sorted(Project.files('new'), key=len, reverse=True) return [t[:-len(suffix)] for t in templates if t.endswith(suffix)]