Start 2025 on time and up to date! Seamlessly integrate your calendars into Dropbox with these simple steps! 📆

Forum Discussion

MooMoo_polar's avatar
MooMoo_polar
Explorer | Level 3
11 months ago

Using files_download_to_file method without Metadata.path_lower

  Hello. I would like to download 900+ files in the shared link folder using python SDK.   I use files_download_to_file method which required Metadata.path_lower from files_list_folder method. Ho...
  • Greg-DB's avatar
    11 months ago

    If that path values are not set, that indicates that the item is not mounted under the account/root for that call. For example, you may be using an access token for an account that doesn't contain that linked item.

     

    To download a file from a shared link for a folder containing that file, you should use the sharing_get_shared_link_file method. The 'url' parameter should be the shared link to the folder, and the 'path' parameter should be the relative path to the desired file inside that folder, which you can build from the 'name' values of the entries returned by files_list_folder/files_list_folder_continue. For example, if the linked folder contains a file named "file.ext", the "path" would be "/file.ext". Or, for example, if the linked folder contains a subfolder named "subfolder", and that subfolder contains a file named "file.ext", the "path" would be
    "/subfolder/file.ext".