@@ -75,6 +75,10 @@ discard block |
||
75 | 75 | return false; |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param string[] $output |
|
80 | + * @param string $path |
|
81 | + */ |
|
78 | 82 | public function checkForError($output, $path) { |
79 | 83 | if (strpos($output[0], 'does not exist')) { |
80 | 84 | throw new NotFoundException($path); |
@@ -130,6 +134,9 @@ discard block |
||
130 | 134 | return $result; |
131 | 135 | } |
132 | 136 | |
137 | + /** |
|
138 | + * @param string[] $output |
|
139 | + */ |
|
133 | 140 | public function parseStat($output) { |
134 | 141 | $data = []; |
135 | 142 | foreach ($output as $line) { |
@@ -151,6 +158,10 @@ discard block |
||
151 | 158 | ]; |
152 | 159 | } |
153 | 160 | |
161 | + /** |
|
162 | + * @param string[] $output |
|
163 | + * @param string $basePath |
|
164 | + */ |
|
154 | 165 | public function parseDir($output, $basePath, callable $aclCallback) { |
155 | 166 | //last line is used space |
156 | 167 | array_pop($output); |
@@ -8,20 +8,16 @@ |
||
8 | 8 | namespace Icewind\SMB\Wrapped; |
9 | 9 | |
10 | 10 | use Icewind\SMB\AbstractShare; |
11 | -use Icewind\SMB\ACL; |
|
12 | 11 | use Icewind\SMB\Exception\ConnectionException; |
13 | 12 | use Icewind\SMB\Exception\DependencyException; |
14 | 13 | use Icewind\SMB\Exception\FileInUseException; |
15 | 14 | use Icewind\SMB\Exception\InvalidTypeException; |
16 | 15 | use Icewind\SMB\Exception\NotFoundException; |
17 | -use Icewind\SMB\Exception\InvalidRequestException; |
|
18 | 16 | use Icewind\SMB\IFileInfo; |
19 | 17 | use Icewind\SMB\INotifyHandler; |
20 | 18 | use Icewind\SMB\IServer; |
21 | 19 | use Icewind\SMB\ISystem; |
22 | 20 | use Icewind\Streams\CallbackWrapper; |
23 | -use Icewind\SMB\Native\NativeShare; |
|
24 | -use Icewind\SMB\Native\NativeServer; |
|
25 | 21 | |
26 | 22 | class Share extends AbstractShare { |
27 | 23 | /** |