From 5f8ea57226392e9ad0866aeddc541a5e8ee2d40a Mon Sep 17 00:00:00 2001
From: alaskowski <alaskowski@ethz.ch>
Date: Tue, 21 Mar 2023 11:15:07 +0100
Subject: [PATCH] SSDM-13462: Updated dataset download scheme to use
 fastdownload when api version is greater than 3.5

---
 api-openbis-python3-pybis/src/python/pybis/dataset.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/api-openbis-python3-pybis/src/python/pybis/dataset.py b/api-openbis-python3-pybis/src/python/pybis/dataset.py
index d6fdbd81d43..cbc21fe60a2 100644
--- a/api-openbis-python3-pybis/src/python/pybis/dataset.py
+++ b/api-openbis-python3-pybis/src/python/pybis/dataset.py
@@ -481,8 +481,7 @@ class DataSet(
             wait_until_finished=True,
             workers=10,
             linked_dataset_fileservice_url=None,
-            content_copy_index=0,
-            fast=False
+            content_copy_index=0
     ):
         """download the files of the dataSet.
 
@@ -511,7 +510,7 @@ class DataSet(
             kind = self.data["type"]["kind"]
 
         if kind in ["PHYSICAL", "CONTAINER"]:
-            if fast is True:
+            if self.openbis.get_server_information().is_version_greater_than(3, 5):
                 return self._download_fast_physical(files, destination, create_default_folders,
                                                     wait_until_finished)
             else:
-- 
GitLab