From: zack on
I would like to get Folder size, i opened folder browse window with
CFolderDialog class but now i have to get the size of the folder, i can't
find the folder size parameter in the class.
Do you know if i have this value of folder size like i have in CFile class?
if i don't have how can i calculate it and maybe an example code ?

anther issue is what class handle copying file and folders to SD card(it
doesn't realy mothers from windows point of view,it is just anther path)?

zack
From: Victor on
You should recursively enum (CFileFind class) all files in folder/subfolders
and calculate their summary size.

Victor

"zack" wrote:

> I would like to get Folder size, i opened folder browse window with
> CFolderDialog class but now i have to get the size of the folder, i can't
> find the folder size parameter in the class.
> Do you know if i have this value of folder size like i have in CFile class?
> if i don't have how can i calculate it and maybe an example code ?
>
> anther issue is what class handle copying file and folders to SD card(it
> doesn't realy mothers from windows point of view,it is just anther path)?
>
> zack
From: Joseph M. Newcomer on
Folders don't have sizes.
joe

On Thu, 22 May 2008 05:24:00 -0700, zack <zack(a)discussions.microsoft.com> wrote:

>I would like to get Folder size, i opened folder browse window with
>CFolderDialog class but now i have to get the size of the folder, i can't
>find the folder size parameter in the class.
>Do you know if i have this value of folder size like i have in CFile class?
>if i don't have how can i calculate it and maybe an example code ?
>
>anther issue is what class handle copying file and folders to SD card(it
>doesn't realy mothers from windows point of view,it is just anther path)?
>
>zack
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Victor on
Good point! :)
Well. I thought OP meant the size_of_all_files in_the_folder... (?)

Victor

"Joseph M. Newcomer" wrote:

> Folders don't have sizes.
> joe
>
> On Thu, 22 May 2008 05:24:00 -0700, zack <zack(a)discussions.microsoft.com> wrote:
>
> >I would like to get Folder size, i opened folder browse window with
> >CFolderDialog class but now i have to get the size of the folder, i can't
> >find the folder size parameter in the class.
> >Do you know if i have this value of folder size like i have in CFile class?
> >if i don't have how can i calculate it and maybe an example code ?
> >
> >anther issue is what class handle copying file and folders to SD card(it
> >doesn't realy mothers from windows point of view,it is just anther path)?
> >
> >zack
> Joseph M. Newcomer [MVP]
> email: newcomer(a)flounder.com
> Web: http://www.flounder.com
> MVP Tips: http://www.flounder.com/mvp_tips.htm
>
From: Joseph M. Newcomer on
Yes, I see your answer. But then the OP would have asked about getting the sum of all the
files in the folder (and perhaps subfolders?).
joe

On Thu, 22 May 2008 06:43:02 -0700, Victor <Victor(a)discussions.microsoft.com> wrote:

>Good point! :)
>Well. I thought OP meant the size_of_all_files in_the_folder... (?)
>
>Victor
>
>"Joseph M. Newcomer" wrote:
>
>> Folders don't have sizes.
>> joe
>>
>> On Thu, 22 May 2008 05:24:00 -0700, zack <zack(a)discussions.microsoft.com> wrote:
>>
>> >I would like to get Folder size, i opened folder browse window with
>> >CFolderDialog class but now i have to get the size of the folder, i can't
>> >find the folder size parameter in the class.
>> >Do you know if i have this value of folder size like i have in CFile class?
>> >if i don't have how can i calculate it and maybe an example code ?
>> >
>> >anther issue is what class handle copying file and folders to SD card(it
>> >doesn't realy mothers from windows point of view,it is just anther path)?
>> >
>> >zack
>> Joseph M. Newcomer [MVP]
>> email: newcomer(a)flounder.com
>> Web: http://www.flounder.com
>> MVP Tips: http://www.flounder.com/mvp_tips.htm
>>
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm