Skip to main content
Visitor 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.

    This topic has been closed for replies.

    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.

    RiyaAuthor
    Visitor II
    May 29, 2025

    Could you please any examples ?