Conditions | 5 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
59 | protected function existCase(string $abspath):bool |
||
60 | { |
||
61 | // 真实文件系统 |
||
62 | if (realpath($abspath) === $abspath) { |
||
63 | return true; |
||
64 | } |
||
65 | // 虚拟文件系统 |
||
66 | if (\file_exists($abspath)) { |
||
67 | foreach (stream_get_wrappers() as $wrapper) { |
||
68 | if (strpos($abspath, $wrapper.'://') === 0) { |
||
69 | return true; |
||
70 | } |
||
71 | } |
||
72 | } |
||
73 | return false; |
||
74 | } |
||
81 |