Skip to main content
Inspiring
December 4, 2006
Question

CFDIRECTORY alternative

  • December 4, 2006
  • 3 replies
  • 551 views
My host has disabled CFDIRECTORY.

How can i get a dynamic list of files within a directory?

--
-----------------------------------------
http://www.dynamicdeveloper.co.uk
-----------------------------------------


    This topic has been closed for replies.

    3 replies

    Inspiring
    December 11, 2006
    fantastic. thx

    --
    -----------------------------------------
    http://www.dynamicdeveloper.co.uk
    -----------------------------------------
    "j.stevenson" <webforumsuser@macromedia.com> wrote in message
    news:elcg62$384$1@forums.macromedia.com...
    > Try <CFFTP CONNECTION="ServerName" ACTION="ListDir"
    > DIRECTORY="/ExplicitPath"
    > NAME="DirList" STOPONERROR="Yes">
    >
    > <CFOUTPUT QUERY="DirList">
    > #name# --- #path# --- #url# --- #length# ---
    > #DateFormat(lastmodified)# ---
    > #isdirectory#<BR>
    > </CFOUTPUT>
    >
    > You can format it nicely using tables, this is just a quickie.
    >


    Known Participant
    December 8, 2006
    Try <CFFTP CONNECTION="ServerName" ACTION="ListDir" DIRECTORY="/ExplicitPath" NAME="DirList" STOPONERROR="Yes">

    <CFOUTPUT QUERY="DirList">
    #name# --- #path# --- #url# --- #length# --- #DateFormat(lastmodified)# --- #isdirectory#<BR>
    </CFOUTPUT>

    You can format it nicely using tables, this is just a quickie.

    This is also assuming, of course, that the machine you're FTP'ing to has the FTP service installed and running (for Windows), and that Port 21 is not being blocked by a firewall installed on the target machine.
    Inspiring
    December 4, 2006
    Here is a link to an example.

    Using Java and ColdFusion to Read a Directory

    Trevor