|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
CFDIRECTORY / CFFILE
Author: Massimo Foti
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56482#305838
> 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
----------------------------
Author: Ian Skinner
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56482#305834
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.
Author: Robert Harrison
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56482#305832
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 &.
Author: Robert Harrison
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:56482#305828
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 &.
|
May 24, 2012
|
Latest Fusion Authority Articles
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||