(string $path)
| 135 | } |
| 136 | |
| 137 | public function stat(string $path): ?array |
| 138 | { |
| 139 | $rel = $this->relativePath($path); |
| 140 | if ($rel !== '') { |
| 141 | $parentRel = trim(str_replace('\\', '/', dirname($rel)), '/'); |
| 142 | if ($parentRel === '.' || $parentRel === '') { |
| 143 | $parentRel = ''; |
| 144 | } |
| 145 | $base = basename($rel); |
| 146 | $cached = $this->getListCache($parentRel); |
| 147 | if ($cached !== null && isset($cached[$base])) { |
| 148 | return $cached[$base]; |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | $props = $this->propFind($path, 0); |
| 153 | if (!$props) { |
| 154 | return null; |
| 155 | } |
| 156 | |
| 157 | return $this->propsToStat($props); |
| 158 | } |
| 159 | |
| 160 | public function read(string $path, ?int $length = null, int $offset = 0): string|false |
| 161 | { |
no test coverage detected