> I am trying to find a way to get a list of all files 
> (including those in sub directories) in a given directory. 
> 
> I've found how to get the name of a given path 
> 
> <CFSET FileName = 
> GetFileFromPath("http://members.wri.com/brettb/pictures/2002/2
> 002_05_06/")> 
> 
> But I'd like this to be more generic. 
> 
> GetFilePaths("http://members.wri.com/brettb/pictures/";) 
> 
> That would return (in an array) the file paths of all files 
> found there. 
> 
> Any suggestions? 
> 
> What I am wanting to do is find any new files (by comparing 
> to a database) and then add new files as they are found. This 
> would be run as a batch job.
> 
> I am building a picture database and I am trying to figure 
> out the best way to get the filenames of pictures I put into 
> this directory into the database. Potentially, I'll be 
> uploading 20-30 at a time.. so doing them one at a time is 
> less then desirable

You won't be able to do this using a URL path. You will need to use the
corresponding filesystem path. You will then either need to use CFDIRECTORY
recursively to find all of the files within that directory and its
subdirectories, or use an external Java class, COM object, shell script or
the like to do something like that.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193458
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to