This is the error I received when trying to list the contents of the directory.
550 /*.*: The filename, directory name, or volume label syntax is incorrect.
What does this error mean?
Here is my code (the same as the one in the CF Help References)
<--- open FTP connection --->
<CFFTP CONNECTION=FTP
USERNAME="anonymous"
PASSWORD="password"
SERVER=" ACTION="Open"
STOPONERROR="Yes">
<--- change directory name --->
<CFFTP CONNECTION=FTP
ACTION="ChangeDir"
DIRECTORY="some_directory"
STOPONERROR="Yes">
<--- get current directory name --->
<CFFTP CONNECTION=FTP
ACTION="GetCurrentDir"
STOPONERROR="Yes">
<--- output directory name --->
<CFOUTPUT>
FTP directory listing of #cfftp.returnvalue#.<p>
</CFOUTPUT>
<--- get directory info --->
<CFFTP CONNECTION=FTP
ACTION="listdir"
DIRECTORY="/*.*"
NAME="q"
STOPONERROR="Yes">
<--- output dirlist results --->
<HR>
<P>FTP Directory Listing:</P>
<CFTABLE QUERY="q" HTMLTABLE>
<CFCOL HEADER="<B>Name</B>" TEXT="#name#">
<CFCOL HEADER="<B>Path</B>" TEXT="#path#">
<CFCOL HEADER="<B>URL</B>" TEXT="#url#">
<CFCOL HEADER="<B>Length</B>" TEXT="#length#">
<CFCOL HEADER="<B>LastModified</B>"
TEXT="Date(Format#lastmodified#)">
<CFCOL HEADER="<B>IsDirectory</B>"
TEXT="#isdirectory#">
</CFTABLE>
thanks,
Longhorn
550 /*.*: The filename, directory name, or volume label syntax is incorrect.
What does this error mean?
Here is my code (the same as the one in the CF Help References)
<--- open FTP connection --->
<CFFTP CONNECTION=FTP
USERNAME="anonymous"
PASSWORD="password"
SERVER=" ACTION="Open"
STOPONERROR="Yes">
<--- change directory name --->
<CFFTP CONNECTION=FTP
ACTION="ChangeDir"
DIRECTORY="some_directory"
STOPONERROR="Yes">
<--- get current directory name --->
<CFFTP CONNECTION=FTP
ACTION="GetCurrentDir"
STOPONERROR="Yes">
<--- output directory name --->
<CFOUTPUT>
FTP directory listing of #cfftp.returnvalue#.<p>
</CFOUTPUT>
<--- get directory info --->
<CFFTP CONNECTION=FTP
ACTION="listdir"
DIRECTORY="/*.*"
NAME="q"
STOPONERROR="Yes">
<--- output dirlist results --->
<HR>
<P>FTP Directory Listing:</P>
<CFTABLE QUERY="q" HTMLTABLE>
<CFCOL HEADER="<B>Name</B>" TEXT="#name#">
<CFCOL HEADER="<B>Path</B>" TEXT="#path#">
<CFCOL HEADER="<B>URL</B>" TEXT="#url#">
<CFCOL HEADER="<B>Length</B>" TEXT="#length#">
<CFCOL HEADER="<B>LastModified</B>"
TEXT="Date(Format#lastmodified#)">
<CFCOL HEADER="<B>IsDirectory</B>"
TEXT="#isdirectory#">
</CFTABLE>
thanks,
Longhorn