@@ -47,7 +47,6 @@ def downloadBlob(dist: io.BufferedWriter, cid: str, chunk_size=1024*1024*10):
47
47
:param dist: BufferedWriter, destination to write the downloaded data
48
48
:param cid: str, Content Identifier for the data to be downloaded
49
49
:param chunk_size: int, size of chunks in which the file will be downloaded (default: 10MB)
50
- :param useCidAsTag: bool, flag to use CID as a tag (default: False)
51
50
:return: t.Upload, the download result
52
51
"""
53
52
if not (hasattr (dist , 'read' ) and hasattr (dist , 'close' )):
@@ -56,22 +55,7 @@ def downloadBlob(dist: io.BufferedWriter, cid: str, chunk_size=1024*1024*10):
56
55
return _download .download_file_into_writable (cid , dist , chunk_size )
57
56
except Exception as e :
58
57
raise e
59
-
60
- @staticmethod
61
- def downloadBlob (dist : io .BufferedWriter , cid : str , chunk_size = 1024 * 1024 * 10 ):
62
- """
63
- Download Blob a file or directory to the Lighthouse.
64
-
65
- :param source: str, path to file or directory
66
- :return: t.Upload, the upload result
67
- """
68
- if not (hasattr (dist , 'read' ) and hasattr (dist , 'close' )):
69
- raise TypeError ("source must have 'read' and 'close' methods" )
70
- try :
71
- return _download .download_file_into_writable (cid , dist , chunk_size )
72
- except Exception as e :
73
- raise e
74
-
58
+
75
59
@staticmethod
76
60
def getDealStatus (cid : str ):
77
61
"""
0 commit comments