@@ 210-219 (lines=10) @@ | ||
207 | * |
|
208 | * @return bool |
|
209 | */ |
|
210 | public function delete($path) |
|
211 | { |
|
212 | $connection = $this->getConnection(); |
|
213 | ||
214 | $result = $connection->exec([ |
|
215 | CURLOPT_POSTQUOTE => ['DELE ' . $this->getRoot() . '/' . $path], |
|
216 | ]); |
|
217 | ||
218 | return $result !== false; |
|
219 | } |
|
220 | ||
221 | /** |
|
222 | * Delete a directory. |
|
@@ 228-237 (lines=10) @@ | ||
225 | * |
|
226 | * @return bool |
|
227 | */ |
|
228 | public function deleteDir($dirname) |
|
229 | { |
|
230 | $connection = $this->getConnection(); |
|
231 | ||
232 | $result = $connection->exec([ |
|
233 | CURLOPT_POSTQUOTE => ['RMD ' . $this->getRoot() . '/' . $dirname], |
|
234 | ]); |
|
235 | ||
236 | return $result !== false; |
|
237 | } |
|
238 | ||
239 | /** |
|
240 | * Create a directory. |