Re: Size of a folder?

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52459
interpreted = N
texte = Damn ... giving away all my sevrets! :) This is how I do it, but if there is a better way, by all means someone tell me. [math show=f]totaldiskspace=0[/math] [math show=f]diskspace=0[/math] [text]dir=../[/text] -- create an include file called "totalspace.inc". It will call itself in a loop to crawl the folders. Add the below into the include. [ListFiles path=[dir]] [if ("[filename]"^".tpl") | ("[filename]"^".db") | ("[filename]"^"motoadmin")] [else] [math show=f]totaldiskspace=ceil([size]/1024)+[totaldiskspace][/math] [if ("[IsFolder]" = "T")] [then][include file=totalspace.inc&dir=[dir][filename]/][/then] [/if] [/else] [/if] [/ListFiles] Note I hide any files that are webcat related as this is used in a file manager system for a server and do not want people editing the file manager. So we hide those files. Also no one is using webcat files but us. ----- Original Message ----- From: To: "WebDNA Talk" Sent: Friday, August 22, 2003 5:12 PM Subject: Size of a folder? > Anyway to have WebDNA figure out the size of a folder and the contents in it? > > Jeff > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Size of a folder? ( Brian Fries 2003)
  2. Re: Size of a folder? ( "WebDna @" 2003)
  3. Re: Size of a folder? ( Tim Robinson 2003)
  4. Re: Size of a folder? ( Tim Robinson 2003)
  5. Size of a folder? ( 2003)
Damn ... giving away all my sevrets! :) This is how I do it, but if there is a better way, by all means someone tell me. [math show=f]totaldiskspace=0[/math] [math show=f]diskspace=0[/math] [text]dir=../[/text] -- create an include file called "totalspace.inc". It will call itself in a loop to crawl the folders. Add the below into the include. [ListFiles path=[dir]] [if ("[filename]"^".tpl") | ("[filename]"^".db") | ("[filename]"^"motoadmin")] [else] [math show=f]totaldiskspace=ceil([size]/1024)+[totaldiskspace][/math] [if ("[IsFolder]" = "T")] [then][include file=totalspace.inc&dir=[dir][filename]/][/then] [/if] [/else] [/if] [/ListFiles] Note I hide any files that are webcat related as this is used in a file manager system for a server and do not want people editing the file manager. So we hide those files. Also no one is using webcat files but us. ----- Original Message ----- From: To: "WebDNA Talk" Sent: Friday, August 22, 2003 5:12 PM Subject: Size of a folder? > Anyway to have WebDNA figure out the size of a folder and the contents in it? > > Jeff > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "WebDna @"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Search: Is this possible? (2005) WebCat2b13MacPlugIn - [include] (1997) Still Learning (1997) Webstar 4.2 Stops Serving (2000) DreamWeaver (2002) OK, here goes... (1997) SQL - Output into file (2004) Proposed FormVariables hierarchy (2000) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) WC2b15 File Corruption (1997) RE: Credit Card Checksum (1997) Denying access by IP address (2000) Bug Report, maybe (1997) Major Security Hole (1998) Using Cookie for client specific info? (1997) Quickly reordering search results (2001) User can't change a password (2002) Referrer field to header field conversion (1997) Help! WebCat2 bug (Ben's input) (1997) & in Lookups (1997)