why not use "busybox du" and get the result?  it not need the root
privilege.

On Nov 3, 1:08 am, Sharjeel Ahmed <shar...@gmail.com> wrote:
> I'm storing data on SDCard and want to get the size/length in bytes of
> all the files in my main folder and sub folders. How can I calculate
> the length? Is there any other way to calculate other than open every
> file and get File.length(). length function returns 0 on directories.
>
> - Sharjeel

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to