Skip to main content
Associate II
May 29, 2025
Question

How to get size of each directory using FileX

  • May 29, 2025
  • 2 replies
  • 265 views

Hi , 

I am using STM32H725 board, I want to get the size of each directories present in my MMC chip.

I am using FileX for file and directory operations on an MMC chip. The chip is accessed via USB MSC

Thank you.

2 replies

Technical Moderator
May 29, 2025

Hello @Riya 

FileX does not provide a built-in function specifically for calculating the size of a directory. To achieve this, you need to manually iterate through the directory entries, sum the sizes of all files, and handle any subdirectories recursively. This involves using FileX APIs to navigate the file system and perform the necessary calculations.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question.Saket_Om"
RiyaAuthor
Associate II
May 29, 2025

Could you please any examples ?