src/Client/Workspace.php
public function xfiles(string $base = null): Promise
    {
        return $this->handler->request(
            'workspace/xfiles',
            ['base' => $base]
        )->then(function (array $textDocuments) {
            return $this->mapper->mapArray($textDocuments, [], TextDocumentIdentifier::class);
        });
    }
public function xfiles(string $base = null): Promise
    {
        return $this->handler->request(
            'workspace/xfiles',
            ['base' => $base]
        )->then(function (array $textDocuments) {
            return $this->mapper->mapArray($textDocuments, [], TextDocumentIdentifier::class);
        });
    }
public function xfiles ( string $ base = null ) : Promise { return $ this -> handler -> request ( 'workspace/xfiles' , [ 'base' => $ base ] ) -> then ( function ( array $ textDocuments ) { return $ this -> mapper -> mapArray ( $ textDocuments , [ ] , TextDocumentIdentifier :: class ) ; } ) ; }
Returns a list of all files in a directory

@param string $base The base directory (defaults to the workspace)
@return Promise <TextDocumentIdentifier[]> Array of documents
Returns a list of all files in a directory