You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
554 B
31 lines
554 B
<?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);
|
|
}
|
|
}
|
|
|