mini\Contracts\PathInterface::realpath() Method

public abstract

Signature

public abstract function realpath(): ?mini\Contracts\PathInterface

Returns

?mini\Contracts\PathInterface

Documentation

Filesystem-based resolution of the path.

Typically wraps PHP's realpath():

  • Returns an absolute, canonical Path if the path exists
  • Returns null if it does not exist or cannot be resolved

Source

src/Contracts/PathInterface.php:42