Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jan 24, 2024
2 parents 4518dab + 61b5bfe commit efdf46a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/FileObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,6 @@ public function exists(int $sensitive = Path::CASE_OS_DEFAULT): bool
}

/**
* getParent
*
* @param int $levels
*
* @return static
Expand All @@ -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
*
Expand Down

0 comments on commit efdf46a

Please sign in to comment.