Skip to main content
December 12, 2023
Solved

downloading files from data set

  • December 12, 2023
  • 1 reply
  • 52 views

can we download all files from data sets at once instead of going one by one

 

    Best answer by Mithila Jayalath

    Hi @Kushagra Mishra 

    Try to list all the files that belongs to a particular dataset using the cognite SDK and then iterate through that list and download the files.

     

    How to list the files:https://cognite-sdk-python.readthedocs-hosted.com/en/latest/files.html#list-files-metadata

    How to dowload the files:https://cognite-sdk-python.readthedocs-hosted.com/en/latest/files.html#download-files-to-disk

    1 reply

    Mithila Jayalath
    Expert ⭐️⭐️⭐️⭐️
    Expert ⭐️⭐️⭐️⭐️
    December 12, 2023

    Hi @Kushagra Mishra 

    Try to list all the files that belongs to a particular dataset using the cognite SDK and then iterate through that list and download the files.

     

    How to list the files:https://cognite-sdk-python.readthedocs-hosted.com/en/latest/files.html#list-files-metadata

    How to dowload the files:https://cognite-sdk-python.readthedocs-hosted.com/en/latest/files.html#download-files-to-disk