| 1 | <?php |
||
| 5 | abstract class PathUtils |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * If a path relative to the user home is given this function expands the path to an absolute path. |
||
| 9 | * |
||
| 10 | * @param string $path |
||
| 11 | * @return string |
||
| 12 | */ |
||
| 13 | public static function expandTilde(string $path): string |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Returns the absolute path without the need for the path actually existing. |
||
| 25 | * |
||
| 26 | * @see https://php.net/manual/en/function.realpath.php#84012 |
||
| 27 | * @param string $path |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | public static function getAbsolutePath(string $path): string |
||
| 67 | } |
||
| 68 |