I think, at least as far as remote access to ftp sites are concerned
(which is part of my issue), I see in the docs that I can use
"listdir" in cfftp to get the files in a directory, so that solves
the download side.

And I read in this blog:

http://www.bennadel.com/index.cfm?dax=blog:1221.view

can a pipe can be used to provide multiple filters to do this:

<cfdirectory
action="list"
directory="#ExpandPath( './' )#"
listinfo="name"
filter="anna.*|ben.*"
name="qFile"
/>

And a ? can be used to designate single-characters wild cards.

Thoughts on this?

Rick




> -----Original Message-----
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 30, 2008 1:54 PM
> To: CF-Talk
> Subject: RE: Wildcard characters in filepath?
> 
> The question would really just apply to files.  I would be automating
> a daily download from a specific directory to which I have access.
> 
> The files would follow this format:
> 
> II20080830_033219_ACR.log
> 
> Everything but the hour/minute/second part is consistent each day:
> 
> II20080830_xxxxxx_ACR.log
> 
> The x's are where I need variable characters since that's the exact
> hour/minute/second the file is created.
> 
> But thinking about your comments about using cfdirectory, would I be
> able to access the directory the files are in each day, get a list,
> and download them via ftp each day?
> 
> Can cfdirectory read a remote directory and provide a list of files?
> 
> I glanced around the docs and google but didn't see an answer, so thought
> it'd just be quicker to ask than research all day.
> 
> Rick
> 
> 
> 
> > -----Original Message-----
> > From: Claude Schneegans [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, August 30, 2008 1:08 PM
> > To: CF-Talk
> > Subject: Re: Wildcard characters in filepath?
> >
> >  >>How can I use wildcard characters in a file path?
> >
> > In a file path for what ?
> > If it is for an HTTP request, the answer is no.
> > If it is for CFFILE, it is still no.
> > Using wild cards could mean that several files could be returned, and
> > both HTTP and CFFILE can deal with only one file at a time.
> >
> > However, you could use CFDIRECTORY action="list" with a filter to get
> > the name of the file.
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311841
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to