[cfaussie] Re: Filtering out folders.
Hi Chris, The filter attribute only filters in matching files, e.g. This will only list jpegs in a folder. cfdirectory action=list directory=#expandPath(Banners)# name=BannerFolders recurse=yes type=dir listinfo=name filter=*.jpg / Also, filter only allows one inclusion, but I need to exclude all sorts of stuff like .svn, .dsStore, thumbs.db Regards, Joris On 20/09/2008, at 3:42 PM, Chris Velevitch wrote: Use the filter attribute on the cfdirectory. Chris -- Chris Velevitch Manager - Adobe Platform Users Group, Sydney m: 0415 469 095 www.apugs.org.au Adobe Platform Users Group, Sydney September meeting: It's Going To Be Brilliant Date: Mon 29th September 6pm for 6:30 start Details and RSVP on http://apugs2008september.eventbrite.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Filtering out folders.
Hi Joris, cfdirectory CAN filter multiple types.. Filter=*.html|*.xml|*.txt Alternatively (and less efficiently) you could use QoQ to exclude the types you don't want. Regards, Adam -Original Message- From: Joris de Beer [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 2:43 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Filtering out folders. Hi Chris, The filter attribute only filters in matching files, e.g. This will only list jpegs in a folder. cfdirectory action=list directory=#expandPath(Banners)# name=BannerFolders recurse=yes type=dir listinfo=name filter=*.jpg / Also, filter only allows one inclusion, but I need to exclude all sorts of stuff like .svn, .dsStore, thumbs.db Regards, Joris On 20/09/2008, at 3:42 PM, Chris Velevitch wrote: Use the filter attribute on the cfdirectory. Chris -- Chris Velevitch Manager - Adobe Platform Users Group, Sydney m: 0415 469 095 www.apugs.org.au Adobe Platform Users Group, Sydney September meeting: It's Going To Be Brilliant Date: Mon 29th September 6pm for 6:30 start Details and RSVP on http://apugs2008september.eventbrite.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Filtering out folders.
Cool, that's good to know. Would be handy for listing just the .swf, jpg, .gif, png files I need to display, but exclude the other stuff I don't need (.cfm, .html, etc) Cheers! On 23/09/2008, at 2:54 PM, Adam Chapman wrote: Hi Joris, cfdirectory CAN filter multiple types.. Filter=*.html|*.xml|*.txt Alternatively (and less efficiently) you could use QoQ to exclude the types you don't want. Regards, Adam -Original Message- From: Joris de Beer [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 2:43 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Filtering out folders. Hi Chris, The filter attribute only filters in matching files, e.g. This will only list jpegs in a folder. cfdirectory action=list directory=#expandPath(Banners)# name=BannerFolders recurse=yes type=dir listinfo=name filter=*.jpg / Also, filter only allows one inclusion, but I need to exclude all sorts of stuff like .svn, .dsStore, thumbs.db Regards, Joris On 20/09/2008, at 3:42 PM, Chris Velevitch wrote: Use the filter attribute on the cfdirectory. Chris -- Chris Velevitch Manager - Adobe Platform Users Group, Sydney m: 0415 469 095 www.apugs.org.au Adobe Platform Users Group, Sydney September meeting: It's Going To Be Brilliant Date: Mon 29th September 6pm for 6:30 start Details and RSVP on http://apugs2008september.eventbrite.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Filtering out folders.
Joris de Beer wrote: I'm using cfdirectory to recursively list the contents of a folder structure. Unfortunately there are a lot of .svn folders in there and they are also getting returned. Anyone have a tip for filtering out folders? Currently I'm thinking of doing a query of queries to remove them from the result set. Check for the Hidden attribute which is H We have this sort of thing everywhere: cfif qryThisTemplateDirectory.type eq File and qryThisTemplateDirectory.Attributes does not contain H for .svn and any other junk the OS might throw in. -- Yours, Kym Kovan mbcomms.net.au --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Filtering out folders.
Yeah, Just write your own folder browser recursive function. Get this dir, loop over each file / folder. If Folder call same function again If file whatever If .svn skip Regards Dale Fraser http://learncf.com http://flexcf.com -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joris de Beer Sent: Friday, 19 September 2008 3:50 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Filtering out folders. I'm using cfdirectory to recursively list the contents of a folder structure. Unfortunately there are a lot of .svn folders in there and they are also getting returned. Anyone have a tip for filtering out folders? Currently I'm thinking of doing a query of queries to remove them from the result set. cfdirectory action=list directory=#expandPath(Banners)# name=BannerFolders recurse=yes type=dir listinfo=name / cfquery name=BannerFolderNoSVN dbType=query SELECT * FROM BannerFolders WHERE NAME NOT LIKE '%.svn%' /cfquery cfdump var=#BannerFolderNoSVN# Joris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Filtering out folders.
Use the filter attribute on the cfdirectory. Chris -- Chris Velevitch Manager - Adobe Platform Users Group, Sydney m: 0415 469 095 www.apugs.org.au Adobe Platform Users Group, Sydney September meeting: It's Going To Be Brilliant Date: Mon 29th September 6pm for 6:30 start Details and RSVP on http://apugs2008september.eventbrite.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---