House of Fusion
Home of the ColdFusion Community
Hostmysite VPS Hosting

Search cf-talk

July 19, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition

For ColdFusion hosting try HostMySite.com.
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

CFDIRECTORY / CFFILE

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Robert Harrison
05/21/2008 12:53 PM

This seems like it should be easy but I must be missing something. I have a known directory with a bunch of unknown subdirectories, and possibly more unknown subdirectories in them. I want to recurse the known directory and get the name of every file and the FULL PATH to each file. How do I get the FULL PATH returned to me?   <cfdirectory action="list" name="dlist" directory="#mypath#" recurse="yes"> I get back all the file names, but I can't tell what directories they are in. Any thoughts? Thanks Robert B. Harrison Director of Interactive services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 T : 631.231.6600 Ext. 119 F : 631.434.7022 www.austin-williams.com Great advertising can't be either/or... It must be &.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Ian Skinner
05/21/2008 02:10 PM

Robert Harrison wrote: ----- Excess quoted text cut - see Original Post for more ----- Did you try dumping the query i.e. <cfdump var="dlist">. Does the directory column in the query not get you where you need to do.  Yes it is not the full path, but combined with the known path it should get your there.

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Robert Harrison
05/21/2008 01:57 PM

This seems like it should be easy but I must be missing something. I have a known directory with a bunch of unknown subdirectories and possibly more unknown subdirectories in them. I want to recurse the known directory and get the name of every file and the FULL PATH to each file. How do I get the FULL PATH returned to me?   <cfdirectory action="list" name="dlist" directory="#mypath#" recurse="yes"> I get back all the file names, but I can't tell what directories they are in. Any thoughts? Thanks Robert B. Harrison Director of Interactive services Austin & Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 T : 631.231.6600 Ext. 119 F : 631.434.7022 www.austin-williams.com Great advertising can't be either/or... It must be &.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Massimo Foti
05/21/2008 02:27 PM

> I want to recurse the known directory and get the name of every file and > the > FULL PATH to each file. How do I get the FULL PATH returned to me? You could try this CFC: http://www.massimocorner.com/coldfusion/cfc/tmt_file_io.zip You can use this method: getFileList(directoryPath, true) Hope it will help ---------------------------- Massimo Foti, web-programmer for hire Tools for ColdFusion, JavaScript and Dreamweaver: http://www.massimocorner.com ----------------------------


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists