mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-02-03 16:21:14 +01:00
32 lines
554 B
PHP
32 lines
554 B
PHP
|
<?php
|
||
|
|
||
|
namespace League\Flysystem;
|
||
|
|
||
|
/**
|
||
|
* @deprecated
|
||
|
*/
|
||
|
class Directory extends Handler
|
||
|
{
|
||
|
/**
|
||
|
* Delete the directory.
|
||
|
*
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function delete()
|
||
|
{
|
||
|
return $this->filesystem->deleteDir($this->path);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* List the directory contents.
|
||
|
*
|
||
|
* @param bool $recursive
|
||
|
*
|
||
|
* @return array|bool directory contents or false
|
||
|
*/
|
||
|
public function getContents($recursive = false)
|
||
|
{
|
||
|
return $this->filesystem->listContents($this->path, $recursive);
|
||
|
}
|
||
|
}
|