| 1 |
<?php |
| 2 |
|
| 3 |
namespace League\Flysystem; |
| 4 |
|
| 5 |
/** |
| 6 |
* @deprecated |
| 7 |
*/ |
| 8 |
class Directory extends Handler |
| 9 |
{ |
| 10 |
/** |
| 11 |
* Delete the directory. |
| 12 |
* |
| 13 |
* @return bool |
| 14 |
*/ |
| 15 |
public function delete() |
| 16 |
{ |
| 17 |
return $this->filesystem->deleteDir($this->path); |
| 18 |
} |
| 19 |
|
| 20 |
/** |
| 21 |
* List the directory contents. |
| 22 |
* |
| 23 |
* @param bool $recursive |
| 24 |
* |
| 25 |
* @return array|bool directory contents or false |
| 26 |
*/ |
| 27 |
public function getContents($recursive = false) |
| 28 |
{ |
| 29 |
return $this->filesystem->listContents($this->path, $recursive); |
| 30 |
} |
| 31 |
} |
| 32 |
|