I have a need to set two variables. One should be set to the basename of the current directory, and the other should set to the basename of the parent directory. So given the following directory tree
foo ├─ bar
basename(get_terragrunt_dir()) is returning “bar” as expected.
I cannot figure out how to properly fetch the basename of the parent, “foo”. Anyone know the right combination of built-in functions to utilize?