public function listContents(string $directory = null, bool $recursive = false): array
    {
        return $this->flySystem->listContents($directory ?? '', $recursive);
    }
public function listContents(string $directory = null, bool $recursive = false): array
    {
        return $this->flySystem->listContents($directory ?? '', $recursive);
    }
public function listContents ( string $ directory = null , bool $ recursive = false ) : array { return $ this -> flySystem -> listContents ( $ directory ?? '' , $ recursive ) ; }
List the contents of a directory.

@param string $directory [optional] The directory
@param bool   $recursive [optional] Whether to recurse through the
directory

@return array
List the contents of a directory .