We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b011d0b commit fd5664eCopy full SHA for fd5664e
src/FileSystem/DirHandler.php
@@ -132,7 +132,7 @@ public function list(): array {
132
* @param string $path
133
* @return array
134
*/
135
- function _list(string $path): array {
+ private function _list(string $path): array {
136
$result = [];
137
$scan = glob($path . '/*');
138
foreach ($scan as $item) {
@@ -144,4 +144,13 @@ function _list(string $path): array {
144
}
145
return $result;
146
147
+
148
+ /**
149
+ * @return string|null
150
+ */
151
+ public function toRealPath(): ?string {
152
+ $realpath = \realpath($this->path);
153
+ if (false === $realpath) return null;
154
+ return $realpath;
155
+ }
156
0 commit comments