Skip to main content
Answer

Retrieving file sizes for CDF files in bytes with python SDK

  • December 18, 2023
  • 2 replies
  • 58 views

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. 

Br,
Dilini 

2 replies

Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2
  • Seasoned Practitioner
  • Answer
  • January 11, 2024

Hi @gghaleb,

Please check the following post. 

Br,
Dilini 


  • Author
  • 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.