We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 166c97e commit 8977093Copy full SHA for 8977093
src/aligo/apis/Download.py
@@ -165,7 +165,7 @@ def download_file(
165
if file.type == 'folder':
166
raise AligoException('文件类型不对:期待文件,得到的是文件夹')
167
file_path = os.path.join(local_folder, file.name)
168
- url = file.download_url or file.url or self._core_get_download_url(GetDownloadUrlRequest(
+ url = file.download_url or self._core_get_download_url(GetDownloadUrlRequest(
169
file_id=file.file_id,
170
drive_id=file.drive_id,
171
file_name=file.name,
0 commit comments