PATH:
home
/
lab2454c
/
tripvare.com
/
vendor
/
league
/
flysystem
/
src
/
Plugin
<?php namespace League\Flysystem\Plugin; class EmptyDir extends AbstractPlugin { /** * Get the method name. * * @return string */ public function getMethod() { return 'emptyDir'; } /** * Empty a directory's contents. * * @param string $dirname */ public function handle($dirname) { $listing = $this->filesystem->listContents($dirname, false); foreach ($listing as $item) { if ($item['type'] === 'dir') { $this->filesystem->deleteDir($item['path']); } else { $this->filesystem->delete($item['path']); } } } }
[-] ListFiles.php
[edit]
[-] GetWithMetadata.php
[edit]
[-] ForcedRename.php
[edit]
[-] PluggableTrait.php
[edit]
[+]
..
[-] ListWith.php
[edit]
[-] EmptyDir.php
[edit]
[-] ForcedCopy.php
[edit]
[-] ListPaths.php
[edit]
[-] PluginNotFoundException.php
[edit]
[-] AbstractPlugin.php
[edit]