rejetto forum
May 26, 2012, 01:13:22 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Size of folders  (Read 334 times)
0 Members and 2 Guests are viewing this topic.
raybob
Tireless poster
****
Offline Offline

United States United States

Posts: 206



View Profile WWW
« on: July 05, 2011, 06:48:43 PM »

Would there be any way to implement a native way to get the size of folders?

Both so that A) would display the size of both folders and files on the panel and B) so that the {.filesize.} macro would work with folders also - ex. {.filesize|C:\test\.}

Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #1 on: July 06, 2011, 02:39:05 AM »

Without big complexity, you can use a combination of a DOS command  (dir c:\test) by getting back the result, by means of the macro {.exec ¦     .}

But the calculation of the size of a directory is always boring and long


Follow members gave a thank to your post:

raybob

For this post, 1 member gave a thank you!
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #2 on: August 21, 2011, 04:05:35 AM »

this was already discussed in the past, and 1 or 2 solutions were suggested.
Problem is: calculating the size of a folder may take forever, best thing is to pre-calculate and store.
But this sets another problem: keeping the information up to date.
And i'm not even considering the additional problems HFS brings: you can set a filter and hide some files, so when you enter the folder you may not find as many bytes as you showed outside.
I don't have a good solution for this, and until that you won't find an embedded solution.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 18, 2012, 11:14:00 PM
anything