# With goTemplate enabled, which Git directory generator parameter holds the right-most directory name of a matched path?

Argo CD, Easy (Beginner), Application Management. https://k8wiz.com/uquiz/with-gotemplate-enabled-which-git-directory-generator-parameter-holds-the-right-most-directory-name-of-a-matched-path

- A. {{.path.path}}
- B. {{.path.basename}}
- C. {{.path.filename}}
- D. {{index .path.segments 0}}

**Answer:** {{.path.basename}}

**Explanation:** For a matched directory such as apps/guestbook, {{.path.basename}} returns guestbook, while {{.path.path}} returns the full apps/guestbook path. {{.path.filename}} exists only for the files generator, and {{index .path.segments 0}} returns the first path element, apps.
