public function getFileDetail(LibraryType $library, string $remoteFilePath): DirectoryItem
    {
        $url = $this->client->getConfig('base_uri')
            . '/repos/'
            . $library->id
            . '/file/detail/'
            . '?p=' . $this->urlEncodePath($remoteFilePath);

        $response = $this->client->request('GET', $url);

        $json = json_decode((string)$response->getBody());

        return (new DirectoryItem)->fromJson($json);
    }
public function getFileDetail(LibraryType $library, string $remoteFilePath): DirectoryItem
    {
        $url = $this->client->getConfig('base_uri')
            . '/repos/'
            . $library->id
            . '/file/detail/'
            . '?p=' . $this->urlEncodePath($remoteFilePath);

        $response = $this->client->request('GET', $url);

        $json = json_decode((string)$response->getBody());

        return (new DirectoryItem)->fromJson($json);
    }
public function getFileDetail ( LibraryType $ library , string $ remoteFilePath ) : DirectoryItem { $ url = $ this -> client -> getConfig ( 'base_uri' ) . '/repos/' . $ library -> id . '/file/detail/' . '?p=' . $ this -> urlEncodePath ( $ remoteFilePath ) ; $ response = $ this -> client -> request ( 'GET' , $ url ) ; $ json = json_decode ( ( string ) $ response -> getBody ( ) ) ; return ( new DirectoryItem ) -> fromJson ( $ json ) ; }
Get file detail

@param LibraryType $library        Library instance
@param string      $remoteFilePath Remote file path

@return DirectoryItem
@throws \GuzzleHttp\Exception\GuzzleException
@throws Exception
Get file detail