Solved

Retrieving file sizes for CDF files in bytes with python SDK

  • 18 December 2023
  • 2 replies
  • 44 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

icon

Best answer by Dilini Fernando 11 January 2024, 11:20

View original

2 replies

Userlevel 4
Badge +2

Hi @gghaleb,

Please check the following post. 

Br,
Dilini 

@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