txt: ## parent.md
  parent
  
  Combined from primary sources listed below.
  
  # [In IO::Path](#___top "go to top of document")[§](#(IO::Path)_method_parent "direct link")
  
  See primary documentation
  [in context](/type/IO/Path#method_parent)
  for **method parent**.
  
  ```raku
  multi method parent(IO::Path:D:)
  multi method parent(IO::Path:D: UInt:D $level)
  ```
  
  Returns the parent path of the invocant. Note that no actual filesystem access is made, so the returned parent is physical and not the logical parent of symlinked directories.
  
  ```raku
  '/etc/foo'.IO.parent.say; # OUTPUT: «"/etc".IO␤»
  '/etc/..' .IO.parent.say; # OUTPUT: «"/etc".IO␤»
  '/etc/../'.IO.parent.say; # OUTPUT: «"/etc".IO␤»
  './'      .IO.parent.say; # OUTPUT: «"..".IO␤»
  'foo'     .IO.parent.say; # OUTPUT: «".".IO␤»
  '/'       .IO.parent.say; # OUTPUT: «"/".IO␤»
  IO::Path::Win32.new('C:/').parent.say; # OUTPUT: «"C:/".IO␤»
  ```
  
  If `$level` is specified, the call is equivalent to calling `.parent()` `$level` times:
  
  ```raku
  say "/etc/foo".IO.parent(2) eqv "/etc/foo".IO.parent.parent; # OUTPUT: «True␤»
  
  ```
  
  # [In X::Inheritance::Unsupported](#___top "go to top of document")[§](#(X::Inheritance::Unsupported)_method_parent "direct link")
  
  See primary documentation
  [in context](/type/X/Inheritance/Unsupported#method_parent)
  for **method parent**.
  
  The type object that the child tried to inherit from.
  