diff --git a/src/FileObject.php b/src/FileObject.php index 0a5c172..2d8227e 100644 --- a/src/FileObject.php +++ b/src/FileObject.php @@ -668,8 +668,6 @@ public function exists(int $sensitive = Path::CASE_OS_DEFAULT): bool } /** - * getParent - * * @param int $levels * * @return static @@ -679,6 +677,11 @@ public function getParent(int $levels = 1): static return static::wrap(dirname($this->getPathname(), $levels)); } + public function getPathObject(): static + { + return static::wrap($this->getPath()); + } + /** * getStream *