[thelist] Determining file size in CF5
.jeff
jeff at members.evolt.org
Mon Jan 6 17:05:16 CST 2003
seth,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Seth Fitzsimmons
>
> I'm trying to write some Cold Fusion that needs to know
> the size of a file that's stored locally (i.e., not an
> uploaded file, so CFFILE does me no good). How do I
> determine the size of said file without using a
> CFDIRECTORY call and looping through the (potentially
> huge) list of files returned?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
with the filter attribute actually:
<cfdirectory action="list"
name="getfilesize"
directory="#myDirectory#"
filter="#myFileName#">
this will return a single result.
good luck,
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list