make_path
- Ariadne >
- Library >
- Ariadne 2.6 >
- Manuals >
- Programmers Reference >
- Classes >
- Object >
- PINP Methods >
(string) make_path($path="")
Given a relative or absolute path, it will return a full absolute path.
| Argument | Description |
|---|---|
| (string) $path | The path to translate into an absolute path. |
make_path()
is a utility function used to parse a path and return a safe
absolute path.
Given a relative or absolute path, it will return a full absolute path to the
given object. It will correctly parse '..', '.' and
doubled slashes '//'. make_path() assumes the starting
directory is the path of the current object. If the $path argument
starts with a '/', the root will be used as the starting directory
instead.

