Hi,
Is there any api to get a folder size ?
I get file size from:http://wiki.forum.nokia.com/index.ph..._get_File_Size
but no folder size information.
Thanks in advance.
Hi,
Is there any api to get a folder size ?
I get file size from:http://wiki.forum.nokia.com/index.ph..._get_File_Size
but no folder size information.
Thanks in advance.
Saniat
Hi,
I am not sure but can you check with CDir?
Use Qt-Quick to make your application UI more attractive.
http://store.ovi.com/content/271896 | http://store.ovi.com/content/276199 | http://store.ovi.com/content/276202 | http://store.ovi.com/content/280827
hello,
one possible is to count all files' size together under this folder.
pai
Symbian && Android && iPhoneOS
To count all file size will takes too much time cause the targeting folder is tree structured.too many folders and files are there.recursively get all files and count their size will takes a little bit times.
In CDir, i still dont find any api for get folder size.
Thanks in advance.
Saniat
Hi,
You have to scan (by CDirScan and CDir, for example) the folder hiararchy and get each individual file size then sum them up.
"Using CDirScan"
http://library.forum.nokia.com/index...ass.guide.html
You are right the calculation can be time-consuming so you should split the task with Active Object
"Splitting long running tasks with active objects"
http://wiki.forum.nokia.com/index.ph...active_objects
and for better user experience you can also show a wait dialog during the scan.
"How to use the CAknWaitDialog"
http://wiki.forum.nokia.com/index.ph...CAknWaitDialog
"Progress and wait notes"
http://wiki.forum.nokia.com/index.ph...and_wait_notes
Regards
Ziteng Chen
Thanks for help.
I will use wait dialog.
Saniat
Hi all!
Please help me, how to estimate time of calculating size?
Thanks.
If you mean that you want to display a progress bar, you may rather want to use the number of files, than some estimation.
Thank you wizard_hu_ it is idea
How get number of files?