src/Adapter/LeagueFilesystemAdapter.php
public function listContents($directory = '', $recursive = false)
    {

        // initialize the array for the filenames
        $files = array();

        // load the filenames of the passed directory
        $contents = $this->filesystem->listContents($directory, $recursive);

        // prepare the array with the file names
        foreach ($contents as $key => $file) {
            $files[$key] = $file['path'];
        }

        // return the filenames
        return $files;
    }
public function listContents($directory = '', $recursive = false)
    {

        // initialize the array for the filenames
        $files = array();

        // load the filenames of the passed directory
        $contents = $this->filesystem->listContents($directory, $recursive);

        // prepare the array with the file names
        foreach ($contents as $key => $file) {
            $files[$key] = $file['path'];
        }

        // return the filenames
        return $files;
    }
List the filenames of a directory.

@param string  $directory The directory to list
@param boolean $recursive Whether to list recursively

@return array A list of filenames