can't list files in a directory
Posted
by Anthony
on Stack Overflow
See other posts from Stack Overflow
or by Anthony
Published on 2010-03-16T14:49:39Z
Indexed on
2010/03/16
14:51 UTC
Read the original article
Hit count: 246
coldfusion
I'm using CF 7 and this code is not returning any files:
<cfset fileLocation = "\\server\uploader\pass-fail">
<cfdirectory
action = "list"
directory = fileLocation
name = "pass_fail_files"
>
<cfdump var="#pass_fail_files#" expand="yes" label="files in pass-fail" >
<cfoutput>#pass_fail_files.name#</cfoutput>
<cfoutput>#pass_fail_files.directory#</cfoutput>
<cfoutput>#pass_fail_files.size#</cfoutput>
<cfoutput>#pass_fail_files.type#</cfoutput>
<cfoutput>#pass_fail_files.dateLastModified#</cfoutput>
<cfoutput>#pass_fail_files.attributes#</cfoutput>
<cfoutput>#pass_fail_files.mode# </cfoutput>
I have checked to make sure that the directory indeed has several text files. But when I run the code, all I get is:
What am I doing wrong?
© Stack Overflow or respective owner