February 2nd, 2004, 03:41 PM
Join Date: Feb 2003
Location: Buffalo, NY
Time spent in forums: 10 h 59 m 53 sec
Reputation Power: 11
Check for file
What I'm TRYING (and failing) to do is very simple, check a directory for XXX file.
I know the name of the file, and I know the directory. I don't want to do a listing of the directory and then check the list, that would be a huge load on the server...
<cfset xxx = "somefile">
<cfset yyy = "someotherfile">
<cfif XXX file exists>
<cffile copy XXX to YYY>
Sorry the file you are trying to copy does not exist.
I have the cffile line of code, but not the CFIF statement. Any help would be greatly appreciated!