Return the n-th parent directory of path.
path (str or Path) – Starting path.
n (int) – Number of levels to go up (default 1).
1
Resolved path of the n-th parent directory.
str