The Daily Click ::. Forums ::. Klik Coding Help ::. Retrieve size of folder?

Post Reply  Post Oekaki 

Posted By Message


Solgryn dot org


GOTW Winner!VIP MemberWii OwnerIt's-a me, Mario!The Cake is a LieGOTM 2ND PLACE! - APRIL 2009GOTM 2ND PLACE - JUNE 2009PS3 OwnerKlikCast #15 Compo Winner!LOL Sign
You've Been Circy'd!GOTM WINNER - JANUARY 2010I am an April FoolGOTW MARCH 2010 WINNER!Santa Hat
24th February, 2010 at 11:28:59 -

Are there any way to retrieve the size of a folder, if yes, how? I can only get the size of a file.. :/



Cornwall UK


VIP Member
24th February, 2010 at 16:49:28 -

I don't thing there's an extension for it yet.
However, you could easily use a list object to load the contents of a folder, run a fastloop to check the size of each individual file in the list, and then just add them all up.
It's a bit more hassle if you have folders within folders though.

Edited by Sketchy





Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 33 Winner!Picture Me This Round 32 Winner!Santa!Box BlueAngelBellBox GreenBox OrangeBox PurpleBox Red
Box YellowCandleCandy CaneChristmas TreeDrumGingerbread HouseGingerbread ManHollyLight Oval BlueLight Oval Green
Light Oval OrangeLight Oval PurpleLight Oval RedLight Oval YellowOrnament GoldOrnament GreenOrnament RedReindeerRibbonSanta Boot
Santa GloveSanta HatSanta SockSantaSanta SkateSnowSnowmanStarTeddy Bear
24th February, 2010 at 17:10:06 -

folders don't have size info attached to them anyways, so an extension would have to do it the same way. Scan the directory and record the size of all the files.

An extension could do it faster though. <- My portfolio site for showing off projects and finished games. <- Old blog I don't keep up anymore <- My best mobile game, made with Fusion.



VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
26th February, 2010 at 04:29:49 -

You could probably get it at a similar speed as an extension. Just with less code

Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.


Post Reply



Worth A Click