Skip to main content
Solved

Retrieving file sizes for CDF files in bytes with python SDK


Greetings,

I would like to get a view of which files uploaded to CDF through extractors have not been completely uploaded and only partially uploaded.

In order to do this, I wanted to write a python script that compares the files sizes in the RAW metadata tables with the actual file sizes in CDF. 

The question is, is there a way to retrieve file size directly of a file in CDF through python SDK without having to download the files locally?

Thanks in advance

Best answer by Dilini Fernando

Hi @gghaleb,

Please check the following post. 

https://hub.cognite.com/developer-and-user-community-134/retrieving-file-sizes-for-cdf-files-2606

Br,
Dilini 

View original

Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2

  • Committed
  • January 14, 2024

@Dilini Fernando  - Thank you for your post. Yes, I was already able to get the file sizes through the document API. It was not clear initially for me the difference between files and documents from API perspective.


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings