How to get size of each directory using FileX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-28 10:11 PM
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.
- Labels:
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-29 12:37 AM
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.
Saket_Om
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-05-29 2:24 AM
Could you please any examples ?
