|
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: 1769 |
@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 ‚My name is Ozymandias, king of kings Look on my works, ye Mighty, and despair!‘ Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare The lone and ... |
||||
| 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 2026 |