July 19, 2008
For ColdFusion hosting try HostMySite.com. |
Home /
Groups /
ColdFusion Talk (CF-Talk)
CFDIRECTORY / CFFILE
This seems like it should be easy but I must be missing something.Robert Harrison 05/21/08 12:53 P Robert Harrison wrote:Ian Skinner 05/21/08 02:10 P This seems like it should be easy but I must be missing something.Robert Harrison 05/21/08 01:57 P > I want to recurse the known directory and get the name of every file andMassimo Foti 05/21/08 02:27 P 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 &. 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. 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 &. > 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 ----------------------------
|
Mailing Lists
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||