Commit 7a289903 authored by Anton Smirnov's avatar Anton Smirnov
Browse files

Properties now

parent ac00a138
Loading
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -44,13 +44,13 @@ Strict mode throws exception if traversal happens beyond root (no effect if the
    $path->resolveRelative($rel); // /etc/passwd
    $path->resolveRelative($rel, strict: true); // exception

``getPrefix()``
---------------
``$prefix``
-----------

Path prefix that you can't traverse beyond like root unix path, windows drive path (C:\\), and url hostname.

``getComponents()``
-------------------
``$components``
---------------

An array of path components excluding prefix.
The last component of the path is empty string if path has trailing (back)slash