<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6.1 - htmldocs - tags-a20.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-26T04:23:24</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#45216" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#40416" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#39247" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#37455" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#37445" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#36314" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#35336" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#33236" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#31388" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#30845" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#27073" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#26980" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#23794" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#23656" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#21821" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#20927" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#20436" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#20079" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#19908" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#19850" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18685" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18414" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18412" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18389" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18344" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18123" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18109" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#17844" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#16202" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#13383" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#45216">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#45216</link>
		<description>http://www.easycfm.com/forums/viewmessages.cfm?Forum=12&amp;Topic=8733   &lt;br /&gt;&lt;br /&gt;For those of you that cannot create directories on remote servers. Very helpful.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-02-14T10:43:26</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#40416">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#40416</link>
		<description>Yep, you nailed it.&lt;br /&gt;For a directory containing .PDF, .HTML, and .TXT, the below DOES NOT include .PDF, but does .HTML and .TXT&lt;br /&gt;&lt;br /&gt;&lt;cfdirectory&lt;br /&gt;	action=&quot;list&quot;&lt;br /&gt;	directory=&quot;#CGI.document_root##APPLICATION.absPath#/reports/&quot;&lt;br /&gt;	name=&quot;pdfFiles&quot;&lt;br /&gt;	filter=&quot;*.html|*.txt&quot;&lt;br /&gt;	sort = &quot;datelastmodified&quot;		&lt;br /&gt;	&gt;</description>
		<dc:creator>moneybagsxp</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-10-04T11:55:59</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#39247">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#39247</link>
		<description>[quote] How can I define more than 1 filter in cfdirectory? I need to filter several filetypes, *.xls, *.doc, *.htm and others. Will this statement work? FILTER=&quot;*.*&quot; Any other ideas? [/quote]&lt;br /&gt;&lt;br /&gt;&lt;cfdirectory action=&quot;list&quot; directory=&quot;c:\temp&quot; filter=&quot;*.xls|*.doc|*.htm&quot; name=&quot;TXTXLSList&quot;&gt;</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-09-07T07:52:19</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#37455">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#37455</link>
		<description>Apparently &quot;Size&quot; is a reserved word for queries  http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/express4.htm&lt;br /&gt;&lt;br /&gt;Even though CFDIRECTORY returns a column named &quot;Size&quot; it doesn't seem like you can include the column by name in a Q of Q.</description>
		<dc:creator>mxstu</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-07-15T09:04:44</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#37445">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#37445</link>
		<description>I tried the multiple filter code suggested by No Screen Name, and it worked fine until I tried to specify the column names.  The Q of Q UNION worked fine until I included the &quot;Size&quot; column.&lt;br /&gt;&lt;br /&gt;&lt;cfdirectory action=&quot;list&quot; directory=&quot;c:\temp&quot; filter=&quot;*.txt&quot; name=&quot;TXTList&quot;&gt;&lt;br /&gt;&lt;cfdirectory action=&quot;list&quot; directory=&quot;c:\temp&quot; filter=&quot;*.xls&quot; name=&quot;XLSList&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfdump var=&quot;#TXTList#&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfquery dbtype=&quot;query&quot; name=&quot;NewQuery&quot;&gt;&lt;br /&gt;SELECT 	Attributes, DateLastModified, Mode, Name, Type, Size&lt;br /&gt;FROM 	TXTList&lt;br /&gt;UNION&lt;br /&gt;SELECT 	Attributes, DateLastModified, Mode, Name, Type, Size&lt;br /&gt;FROM 	XLSList&lt;br /&gt;ORDER BY NAME&lt;br /&gt;&lt;/cfquery&gt;&lt;br /&gt;&lt;br /&gt;Returns error&lt;br /&gt;&lt;br /&gt;Error Executing Database Query.  &lt;br /&gt;&lt;br /&gt;Query Of Queries syntax error.&lt;br /&gt;Encountered &quot;Size&quot; at line 0, column 0. Incorrect Select List, Incorrect select column,</description>
		<dc:creator>mxstu</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-07-15T05:19:34</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#36314">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#36314</link>
		<description>Shobna. I'm sorry. I can't think of a workaround for this. You might try posting your question to the online forums. http://webforums.macromedia.com/coldfusion. One of the people who monitor the forums may have a creative workaround.</description>
		<dc:creator>jrunrandy</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2005-07-05T11:28:02</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#35336">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#35336</link>
		<description>If cfdirectory tag is turned off in the cf administrator (because of security issues), how do I get the names of the files I need to retrieve for my application?</description>
		<dc:creator>shobna</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-06-10T11:31:50</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#33236">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#33236</link>
		<description>For those looking to filter multiple file types, try this:&lt;br /&gt;&lt;cfdirectory action=&quot;list&quot; directory=&quot;#your_dir# filter=&quot;.jpg&quot; name=&quot;JPGList&quot;&gt;&lt;br /&gt;&lt;cfdirectory action=&quot;list&quot; directory=&quot;#your_dir# filter=&quot;.gif&quot; name=&quot;GIFList&quot;&gt;&lt;br /&gt;&lt;cfquery dbtype=&quot;query&quot; name=&quot;MyList&quot;&gt;&lt;br /&gt;   SELECT * FROM JPGList&lt;br /&gt;   UNION&lt;br /&gt;   SELECT * FROM GIFList&lt;br /&gt;   ORDER BY NAME&lt;br /&gt;&lt;/cfquery&gt;&lt;br /&gt;&lt;br /&gt;That should work.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-05-10T13:32:02</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#31388">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#31388</link>
		<description>I have a better redundancy solution ;) (at least on Windows)&lt;br /&gt;&lt;cfobject type=&quot;COM&quot; action=&quot;create&quot; class=&quot;Scripting.FileSystemObject&quot; name=&quot;myFso&quot;&gt;&lt;br /&gt;&lt;cfset folder = myFso.GetFolder(&quot;myDir&quot;)&gt;&lt;br /&gt;&lt;cfset folder.Delete() &gt;&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;/pim</description>
		<dc:creator>Pim.Man</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-04-13T06:27:07</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#30845">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#30845</link>
		<description>Found a strange but very handy way to move a folder, subfolders, and all files within the folder. Using cffile, not cfdirectory, and using a folder name as source:&lt;br /&gt;&lt;br /&gt;&lt;cffile action = &quot;move&quot; &lt;br /&gt;source = &quot;#foldername#&quot; &lt;br /&gt;destination = &quot;#destname&quot;&gt;&lt;br /&gt;&lt;br /&gt;At least on windows2003, it moves the folder and everything in it. Good for me, hope that doesn't change.</description>
		<dc:creator>jfine</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-04-03T15:15:44</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#27073">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#27073</link>
		<description>since the function to destroy a directory even if it contains files and folders posted priously, had some hardcoded and redundant stuff, i had to code my own: hope it helps someone:&lt;br /&gt;&lt;br /&gt;&lt;cffunction name=&quot;dirDelete&quot; access=&quot;public&quot; output=&quot;false&quot; returntype=&quot;any&quot;&gt;&lt;br /&gt;	&lt;cfargument name=&quot;dir&quot; required=&quot;no&quot; default=&quot;#expandPath('/pocket_cache/')#&quot;&gt;&lt;br /&gt;	&lt;cfdirectory action=&quot;list&quot; name=&quot;delfile&quot; directory=&quot;#arguments.dir#&quot;&gt;&lt;br /&gt;	&lt;cfif delfile.RecordCount EQ 0&gt;&lt;br /&gt;		&lt;cfif directoryExists(arguments.dir)&gt;&lt;br /&gt;			&lt;cfdirectory action=&quot;delete&quot; directory=&quot;#arguments.dir#&quot;&gt;&lt;br /&gt;		&lt;/cfif&gt;&lt;br /&gt;	&lt;cfelse&gt;&lt;br /&gt;		&lt;cfloop query=&quot;delfile&quot;&gt;&lt;br /&gt;			&lt;cfif type EQ &quot;file&quot;&gt;&lt;br /&gt;				&lt;cffile action=&quot;delete&quot;	file=&quot;#arguments.dir#\#name#&quot;&gt;&lt;br /&gt;			&lt;cfelse&gt;&lt;br /&gt;				&lt;cfset temp = dirDelete(arguments.dir &amp; '\' &amp; #delfile.name#)&gt;&lt;br /&gt;			&lt;/cfif&gt;&lt;br /&gt;		&lt;/cfloop&gt;&lt;br /&gt;		&lt;cfif directoryExists(arguments.dir)&gt;&lt;br /&gt;			&lt;cfdirectory action=&quot;delete&quot; directory=&quot;#arguments.dir#&quot;&gt;&lt;br /&gt;		&lt;/cfif&gt;&lt;br /&gt;	&lt;/cfif&gt;&lt;br /&gt;&lt;/cffunction&gt;&lt;br /&gt;&lt;br /&gt;USE&lt;br /&gt;&lt;cfset dirDelete('#FULL PATH#')&gt;</description>
		<dc:creator>webdev101</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-01-27T15:25:18</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#26980">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#26980</link>
		<description>I ran into a major problem lately where &lt;CFDIRECTORY&gt; returns the following value in the column:  datelastmodified = 'January 25, 2005 2:28:57 o'clock PM EST'.&lt;br /&gt;&lt;br /&gt;First of all where the heck does the &quot;o'clock' come from and why does IsDate return Yes, but all other date functions fail on this data?</description>
		<dc:creator>mindtrap</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-01-25T11:55:28</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#23794">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#23794</link>
		<description>Ive been working with cfDirectory and in addition to the problem with modified dates, I've have noticed the filter behavior has changed.&lt;br /&gt;&lt;br /&gt;In coldfusion 5 i was using cfDirectory with filter=&quot;*.&quot; to list only the directories, like this...&lt;br /&gt;&lt;br /&gt;&lt;cfdirectory action=&quot;LIST&quot; directory=&quot;#thisPath#&quot; name=&quot;dirsOnly&quot; filter=&quot;*.&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfloop query=&quot;dirsOnly&quot;&gt;&lt;br /&gt;       [blah]&lt;br /&gt;&lt;/cfloop&gt;&lt;br /&gt;&lt;br /&gt;That worked great in 5 but in MX it returns an empty record set. &lt;br /&gt;&lt;br /&gt;Now i have list everything and check the type when im looping through it, like this right?...&lt;br /&gt;&lt;br /&gt;&lt;cfdirectory action=&quot;LIST&quot; directory=&quot;#thisPath#&quot; name=&quot;filesAndDirs&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfloop query=&quot;filesAndDirs&quot;&gt;&lt;br /&gt;       &lt;cfif type eq &quot;dir&quot;&gt;&lt;br /&gt;              [blah]&lt;br /&gt;       &lt;/cfif&gt;&lt;br /&gt;&lt;/cfloop&gt;&lt;br /&gt;&lt;br /&gt;Its a lot slower now because most of the directories im dealing with here have maybe hundreds of files but only few directories. Being able to filter out all the files and just deal with the dirs was substantially faster. It'd be great if that functionality returned some day.</description>
		<dc:creator>scrapbox</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-11-10T16:14:21</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#23656">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#23656</link>
		<description>When I use cfdirectory to return the server file time stamp, datelastmodified is returning an adjusted time to account for DST. Is there a way to return the time as is?</description>
		<dc:creator>dp168</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-11-08T12:43:17</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#21821">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#21821</link>
		<description>Is there someone who nows if you can limit the resultset of a cfdirectory (list)? I need just 1000 files of a directory with about 100000 files in it. It slows down the process very hard to list all 100000 with the cfdirectory tag and then loop over the first 1000 of it.</description>
		<dc:creator>whazaah</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-09-30T03:22:27</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#20927">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#20927</link>
		<description>The ? character in the file parameter didn't seems to work. When I tried to use it, CF throws a &quot;Error: ?+* follows nothing in expression null&quot;. It seems that it's taking the filter parameter as a regular expression?</description>
		<dc:creator>Ernesto RA</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-09-03T07:32:15</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#20436">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#20436</link>
		<description>Just a quick question. When I am using CFdirectory the application is running in c:/wwwroot/application/hthml.  I need CFdirectory to look at a root folder on the webserver C:/wwwroot/images/home.  I am testing on a windows server but the problem comes when I go to deploy this live on a Linux server.  Since the directory requires absolute path how do I do this dynamically?</description>
		<dc:creator>grndvl1</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-08-24T08:04:59</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#20079">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#20079</link>
		<description>since the function to destroy a directory even if it contains files and folders posted priously, threw me some errors, i had to code my own: hope it helps someone:&lt;br /&gt;&lt;br /&gt;&lt;cffunction name=&quot;deldirtree&quot; output=&quot;false&quot;&gt;&lt;br /&gt; &lt;cfargument name=&quot;dir&quot; required=&quot;yes&quot;&gt;&lt;br /&gt; &lt;cfargument name=&quot;sdir&quot; required=&quot;no&quot; default=&quot;&quot;&gt;&lt;br /&gt; &lt;cfset ndir=&quot;&quot;&gt;&lt;br /&gt; &lt;cfdirectory action=&quot;list&quot;&lt;br /&gt;              name=&quot;delfile&quot;&lt;br /&gt;              directory=&quot;C:\CFusionMX\wwwroot\#arguments.dir##arguments.sdir#&quot;&gt;&lt;br /&gt; &lt;cfif arguments.sdir EQ &quot;&quot; &lt;br /&gt;       AND delfile.RecordCount EQ 0&gt;&lt;br /&gt;  &lt;cfset dirtodel = &quot;C:\CFusionMX\wwwroot\#arguments.dir#&quot;&gt;&lt;br /&gt;  &lt;cfif DirectoryExists(dirtodel)&gt;&lt;br /&gt;   &lt;cfdirectory action=&quot;delete&quot;&lt;br /&gt;                directory=&quot;#dirtodel#&quot;&gt;&lt;br /&gt;  &lt;/cfif&gt;&lt;br /&gt; &lt;cfelse&gt;&lt;br /&gt;  &lt;cfloop query=&quot;delfile&quot;&gt;&lt;br /&gt;   &lt;cfif type EQ &quot;file&quot;&gt;&lt;br /&gt;    &lt;cffile action=&quot;delete&quot;&lt;br /&gt;            file=&quot;C:\CFusionMX\wwwroot\#arguments.dir##arguments.sdir#\#name#&quot;&gt;&lt;br /&gt;   &lt;cfelse&gt;&lt;br /&gt;    &lt;cfset ndir = sdir &amp; &quot;\#name#&quot;&gt;&lt;br /&gt;   &lt;/cfif&gt;&lt;br /&gt;  &lt;/cfloop&gt; &lt;br /&gt;  &lt;cfif ndir NEQ &quot;&quot;&gt;&lt;br /&gt;   &lt;cfset deldirtree(arguments.dir,ndir)&gt;&lt;br /&gt;  &lt;cfelse&gt;&lt;br /&gt;   &lt;cfset dirtodel = &quot;C:\CFusionMX\wwwroot\#arguments.dir##arguments.sdir#&quot;&gt;&lt;br /&gt;   &lt;cfif DirectoryExists(dirtodel)&gt;&lt;br /&gt;    &lt;cfdirectory action=&quot;delete&quot;&lt;br /&gt;                 directory=&quot;#dirtodel#&quot;&gt;&lt;br /&gt;   &lt;/cfif&gt;&lt;br /&gt;   &lt;cfset i = 1&gt;&lt;br /&gt;   &lt;cfloop condition = &quot;i LT Len(arguments.sdir)&quot;&gt;&lt;br /&gt;    &lt;cfif Find(&quot;\&quot;,arguments.sdir,i) GT 0&gt;&lt;br /&gt;     &lt;cfset i = Find(&quot;\&quot;,arguments.sdir,i) + 1&gt;&lt;br /&gt;    &lt;cfelse&gt;&lt;br /&gt;     &lt;cfset j = i - 2&gt;&lt;br /&gt;     &lt;cfset i = Len(arguments.sdir)&gt;&lt;br /&gt;    &lt;/cfif&gt;&lt;br /&gt;   &lt;/cfloop&gt;&lt;br /&gt;   &lt;cfif j EQ 0&gt;&lt;br /&gt;    &lt;cfset deldirtree(arguments.dir,&quot;&quot;)&gt;&lt;br /&gt;   &lt;cfelse&gt;&lt;br /&gt;    &lt;cfset deldirtree(arguments.dir,&quot;#Left(arguments.sdir,j)#&quot;)&gt;&lt;br /&gt;   &lt;/cfif&gt;&lt;br /&gt;  &lt;/cfif&gt;&lt;br /&gt; &lt;/cfif&gt;&lt;br /&gt;&lt;/cffunction&gt; &lt;br /&gt;&lt;cfset deldirtree(&quot;Folder to delete&quot;,&quot;&quot;)&gt;</description>
		<dc:creator>thewickedone</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-08-14T05:22:36</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#19908">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#19908</link>
		<description>In respose to hereticmessia:&lt;br&gt;This issue should be resolved in the next major release of ColdFusion MX.&lt;br&gt;In the meantime, you could try the following custom function in place of LSParseDateTime to workaround the issue:&lt;br&gt;&lt;br&gt;&lt;cffunction name=&quot;custom_lsparsedatetime&quot; return=&quot;date&quot;&gt;&lt;br&gt;	&lt;cfargument name=&quot;str&quot; required=&quot;yes&quot;&gt;&lt;br&gt;	&lt;cfobject type=&quot;java&quot; class=&quot;java.text.DateFormat&quot; action=&quot;create&quot; name=&quot;df&quot;&gt;&lt;br&gt;	&lt;cfset fulldf = df.getDateTimeInstance(df.FULL, df.FULL)&gt;&lt;br&gt;	&lt;cfreturn fulldf.parse(str)&gt;&lt;br&gt;&lt;/cffunction&gt;</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-08-11T11:40:25</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#19850">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#19850</link>
		<description>Consider this, kids:&lt;br /&gt;&lt;br /&gt;You're a developer sitting in some country whose locale isn't on JRun's list. For the most part, this is fine: you deal with dates in UTC or, if it doesn't matter, without caring what the timezone is.&lt;br /&gt;&lt;br /&gt;Then you try and list a directory using CFDIRECTORY and assume that the dates you get from that are *real* date objects (i.e. {ts 'blah blah'}). To your surprise, they're not, but are ones formatted for the current locale.&lt;br /&gt;&lt;br /&gt;No problem, you think, I'll just run this through LSParseDateTime(). But no joy: you're told it's not a valid date.&lt;br /&gt;&lt;br /&gt;Then you try plain old ParseDateTime(), but *that* tells you that it doesn't support the en_IE (I'm in Ireland) locale. Now, this beggars belief.&lt;br /&gt;&lt;br /&gt;So, what's a lad to do: he's working with a tag the spits back dates in an obviously flawed format and parsing functions unable to parse dates produced by another part of the product.&lt;br /&gt;&lt;br /&gt;And no, switching from IST to BST isn't an option. I've tried that and the blasted thing is *still* spitting back bad dates. Right now, I'd like to clobber the programmer who wrote this code with a very big stick.</description>
		<dc:creator>hereticmessiah</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-08-10T11:38:12</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18685">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18685</link>
		<description>I need the cfdirectory function returning the files ordered by file name but case insensitive. Is it possible just with the cfdirectory tag ?&lt;br /&gt;I'm under CF 5.0 Linux&lt;br /&gt;Thx</description>
		<dc:creator>_187</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-07-19T06:27:02</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18414">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18414</link>
		<description>My bad.  I was so used to cf 5.0 I was using startrow in the cfoutput to eliminate . and ..&lt;br /&gt;Sorry.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfdirectory action=&quot;LIST&quot; name=&quot;getImgz&quot; directory=&quot;#uImageFile#&quot; sort=&quot;name &quot;&gt;&lt;br /&gt;......&lt;br /&gt;&lt;cfoutput query=&quot;getImgz&quot; startrow=&quot;3&quot;&gt;&lt;br /&gt;      &lt;option value=&quot;#name#&quot;&gt;#name#&lt;br /&gt;&lt;/cfoutput&gt;</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-07-12T14:49:54</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18412">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18412</link>
		<description>When attempting to use the list function in cfdirectory (in CFMX 6.1) with NO directory filter, the list does not contain either the first 2 files in the directory when sort = &quot;name asc&quot; or the last two files when sort=&quot;name desc&quot;.  This also happens when no sort is applied (see sort-&quot;name asc&quot;)&lt;br /&gt;&lt;br /&gt;Is this a known bug?  Is there a HotFix?</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-07-12T14:37:32</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18389">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18389</link>
		<description>The behavior depends on the operating system and how it resolves the path and determines permissions.&lt;br&gt;I believe the issue is that when you use the mapped drive, Windows uses the wide-open permissions.&lt;br&gt;When you use the IP address, you are probably short-circuiting the Windows sharing mechanism and its permission settings.&lt;br&gt;For further information, I suggest posting your issue to the online forums: http://webforums.macromedia.com/coldfusion/.</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 0</dc:type>
		<dc:date>2004-07-12T07:39:24</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18344">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18344</link>
		<description>Thank you &quot;halL said on Jul 7, 2004 at 8:23 AM &quot;.&lt;br /&gt;&lt;br /&gt;After changing the ColdFusion MX service to have higher permissions the IP address started to work. (Not really what I wanted though due to security concerns)&lt;br /&gt;&lt;br /&gt;However, my initial testing with the service configured with &quot;Local System&quot; I got the following results:&lt;br /&gt;&lt;br /&gt;I setup a share with share permissions Everyone Full Control and NTFS permissions Everyone Full Control. There were two text files in the share inheriting the same permissions.&lt;br /&gt;&lt;br /&gt;I wasn't able to display the directory list using the IP address to connect.&lt;br /&gt;&lt;br /&gt;I was able to display the directory list using a name to connect (I added the name and IP address to the local hosts file for name resolution).&lt;br /&gt;&lt;br /&gt;Can someone verify this behaviour?</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-07-11T21:36:38</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18123">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18123</link>
		<description>In response to No Screen Name of July 6 2004:&lt;br&gt;You can use an IP address, as in the following example:&lt;br&gt;&lt;br&gt;&lt;cfdirectory directory=&quot;//12.3.123.123/c_drive/&quot; name=&quot;dirQuery&quot; action=&quot;LIST&quot;&gt;&lt;br&gt;&lt;cfdump  var=&quot;#dirQuery#&quot;&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt;Remember that ColdFusion must be running in a process with remote access permissions.&lt;br&gt;By default, if you run ColdFusion MX as a service in Windows, it runs under the local system account which lacks such permissions, as described in the note on this page.</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-07-07T08:23:46</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18109">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#18109</link>
		<description>cfdirectory in MX 6.1 doesn't support using an IP Address for a remote directory: &quot;\\[IP Address]\Share\Directory&quot;&lt;br /&gt;eg \\123.123.123.123\myshare\mydirectory&lt;br /&gt;This used to work in ColdFusion 5. I haven't been able to find any documents that list this as a change yet. Can someone confirm this?&lt;br /&gt;&lt;br /&gt;How are names resolved by the cfdirectory tag for remote computers?</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-07-06T21:54:58</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#17844">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#17844</link>
		<description>How can I define more than 1 filter in cfdirectory? I need to filter several filetypes, *.xls, *.doc, *.htm and others. Will this statement work?  FILTER=&quot;*.*&quot;  Any other ideas? I need to resolve this for work so ANY prompt response is GREATLY appreciated!!!</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-30T22:43:36</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#16202">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#16202</link>
		<description>On Windows, with MX 6.1, a call to CFDIRECTORY without an absolute path will create directories under the CFusionMX\runtime\bin directory, not the directory of the current template (just in case you're wondering where it went!).</description>
		<dc:creator>nk151</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-06-07T09:46:38</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#13383">
		<title>coldfusion/6.1/htmldocs/tags-a20.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-a20.htm#13383</link>
		<description>@ Santa Rosa Mike: This is not really a ColdFusion related problem but a Windows thing. You need to change the properties of the ColdFusion service, to be more precise: the account the ColdFusion MX Application service runs with. Unfortunately, Microsoft changes the way how to do this in every new Windows version and I only have a German one (which likely doesn't help you), so it is probably the best if you ask your local Windows guru how to run a service with a different user account. (And don't forget to tell him what Windows version you are running.)</description>
		<dc:creator>dnimmich</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-04-25T09:59:04</dc:date>
	</item>
	</rdf:RDF>

