Changeset View
Changeset View
Standalone View
Standalone View
src/filesystem/Filesystem.php
| Show First 20 Lines • Show All 1,041 Lines • ▼ Show 20 Lines | if ($real_u) { | ||||
| $u = $real_u; | $u = $real_u; | ||||
| } | } | ||||
| if ($real_v) { | if ($real_v) { | ||||
| $v = $real_v; | $v = $real_v; | ||||
| } | } | ||||
| return ($u == $v); | return ($u == $v); | ||||
| } | } | ||||
| public static function concatenatePaths(array $components) { | |||||
| $components = implode($components, DIRECTORY_SEPARATOR); | |||||
| // Replace any extra sequences of directory separators with a single | |||||
| // separator, so we don't end up with "path//to///thing.c". | |||||
| $components = preg_replace( | |||||
| '('.preg_quote(DIRECTORY_SEPARATOR).'{2,})', | |||||
| DIRECTORY_SEPARATOR); | |||||
epriestley: ("Hilariously", this is missing a third parameter and doesn't work at all, but got fixed later.) | |||||
| return $components; | |||||
| } | |||||
| /* -( Assert )------------------------------------------------------------- */ | /* -( Assert )------------------------------------------------------------- */ | ||||
| /** | /** | ||||
| * Assert that something (e.g., a file, directory, or symlink) exists at a | * Assert that something (e.g., a file, directory, or symlink) exists at a | ||||
| * specified location. | * specified location. | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines | |||||
("Hilariously", this is missing a third parameter and doesn't work at all, but got fixed later.)