PDA

View Full Version : Check Free Flash Space



splodger15
May 23rd, 2007, 20:44
Does anyone know the C code to check how much flash space there is left.

Thanks

Buddy4point0
May 23rd, 2007, 22:32
im pretty sure its done by copying a large file onto the flash and then you check to see how much copyed on, then delete it

Cloudhunter
May 23rd, 2007, 23:35
im pretty sure its done by copying a large file onto the flash and then you check to see how much copyed on, then delete it

I believe there have been other (less messy) ways.

Cloudy

splodger15
May 24th, 2007, 09:27
^ ^
Yeh I think there is a few less messy ways

Buddy4point0
May 24th, 2007, 09:49
ok well your best bet for help is evilmana. people there are all coders.

dangee
May 25th, 2007, 10:11
1:find out flash size
(think theyR..
flash0: 16mb
flash1: 4mb
..not sure tho)
2: addup sizes of all files on flash (? +1k per folder ?) -eg use
System.listDirectory()[].size
3: subtract from flash size