In IO::Spec::Unix§

See primary documentation in context for method updir

method updir()

Returns a string representing the directory one up from current:

say '..' eq $*SPEC.updir# OUTPUT: «True␤»