Randy:

Thanks for the note. As usual, after sending my note to the list, when I
re-read the manual for the size parameter, "size of directory entry", I
realized I had misinterpreted the section.

-Gerry

"Adkins, Randy" wrote:
> 
> A Directory will have the filesize of ZERO.
> It will not give you the Total file size of all
> files located in that Directory.
> 
> You will have to take each Directory then
> ReQuery that Directory to get the total.
> 
> You make check the Dev Exchange to see if there
> is a Tag already that does this for you.
> 
> -----Original Message-----
> From: Gerry Pauline [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 23, 2001 3:48 PM
> To: CF-Talk
> Subject: CFDIRECTORY Question -- Simple I Hope !
> 
> CFxperts:
> 
> I have what seems like a very basic routine, copied almost exactly from
> the manual:
> 
> <CFDIRECTORY DIRECTORY="c:\InetPub\WWWROOT\"
>                   NAME="DirList"
>                   SORT="size DSC">
> 
> <CFOUTPUT QUERY="DirList">
> 
> <CFIF DirList.Type Is "Dir">
> #DirList.Type#&nbsp;&nbsp;
> #DirList.Name#&nbsp;&nbsp;
> #DirList.Size#&nbsp;&nbsp;
> #DirList.DateLastModified#<BR>
> </CFIF>
> 
> </CFOUTPUT>
> 
> It works fine, with one exception:  for all of the directories, it
> returns a size of 0 bytes; yes, the directories are filled :-) I tried
> this on my workstation, which is running PWS, NT 4.0, CF 4.0.1 and on
> one of our production servers, which is running Win2k, IIS 5, CF 4.5.1
> SP2.
> 
> On each machine, the returned information contained the directory name,
> type, modified date and size, with each size value being 0 bytes. Both
> CF servers have the tag enabled. I'm sure this has a simple explanation,
> did I misread/understand how this tag works ? Naturally, it's the
> directory size information that I'm most interested in !
> 
> Any and all help will be gratefully appreciated ! Thank You.
> 
> -Gerry
> 
> Gerard T. Pauline
> Mgr, Internet/DB Applications
> Computer Systems, DoIT
> Pace University
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to