/**
  * Get the parent directory of the filesystem object.
  * This will return the directory the filesystem object is located in.
  * Calling this method on the root directory will fail because the root doesn't have a parent directory,
  * and will return the $default value.
  *
  * @return Directory|null The parent directory as Directory instance, or null if there's no parent directory and on
  * failure.
  */
 public function getParent()
 {
     return FilesystemObjectHelper::getParent($this);
 }