PATH:
home
/
lab2454c
/
vaultchip.com
/
vendor
/
league
/
flysystem
/
src
/
Plugin
<?php namespace League\Flysystem\Plugin; class ListPaths extends AbstractPlugin { /** * Get the method name. * * @return string */ public function getMethod() { return 'listPaths'; } /** * List all paths. * * @param string $directory * @param bool $recursive * * @return string[] paths */ public function handle($directory = '', $recursive = false) { $result = []; $contents = $this->filesystem->listContents($directory, $recursive); foreach ($contents as $object) { $result[] = $object['path']; } return $result; } }
[-] 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]