![]() |
Forum Index : Microcontroller and PC projects : CMaximite drive size
Author | Message | ||||
Yourock17 Newbie ![]() Joined: 09/01/2015 Location: AustraliaPosts: 12 |
Hello TBS, i have a question. I'm currently writing a program that is supposed to give me the used storage on B: Drive (SD Card). I'm struggling to find a solution to how i actually get the file sizes. I have seen DIR$() but it only does the current working directory. In summary, can someone suggest some code or a command that could perhaps help me to make a program that gets the file sizes of files on the drive, including sub directories. Thank you. |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1579 |
@Yourock17 I think there is still no better answer than this. ![]() It's a working - but slow - solution (see File Selector->ReadDir)! EDIT Note: one call of FileSize() takes about 65ms! Maybe too slow for your application!? Good luck! Michael causality ≠ correlation ≠ coincidence |
||||
Yourock17 Newbie ![]() Joined: 09/01/2015 Location: AustraliaPosts: 12 |
Ok Thanks ![]() |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |