Well, I'm not so cool as to whip up an example, but you could easily use
Java to interact with the File System.
Generally it's quite a bit faster at FS stuff than CF (or BD, I'd assume).
Heck, I'll go check for a java directory size example... hrm. found some
JNDI:
JRun and Sun's JNDI FS
:[EMAIL PROTECTED]
Sent: Friday, April 14, 2006 3:21 PM
To: CF-Talk
Subject: RE: disk size manager
As someone else mentioned, I think what you need to do is best handled
by the OS. You can probably do something with CF, but it's probably
going to be time consuming and inefficient. If you're on Linux
PM
To: CF-Talk
Subject: RE: disk size manager
ColdFusion 7 has recursion built into cfdirectory I believe.
You are correct:
http://coldfusioncookbook.com/entry/79/How-do-I-find-the-size-of-a-direc
tory?
(I just noticed that the cfcookbook as questionmarks in the URLs...weird
(as punctuation
Still, that would be a huge pain to do a cfdirectory then count all the
filesizes. yuck! Time consuming, too.
What you need is the ability to get into the underlying OS, which probably
already knows the amount of space you are taking, and have left.
Here, I made a little command-line app for
As someone else mentioned, I think what you need to do is best handled
by the OS. You can probably do something with CF, but it's probably
going to be time consuming and inefficient. If you're on Linux, you can
use the du command in a script, and call this with cfexecute. I'm not
sure if
5 matches
Mail list logo