<?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-p30.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-25T18:31:06</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#67993" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#59185" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#46378" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#40628" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#30055" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#23248" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#2130" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#1882" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#1601" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#67993">
		<title>coldfusion/6.1/htmldocs/tags-p30.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#67993</link>
		<description>I also have had trouble using the cffile delete function, even with absolute paths.&lt;br /&gt;&lt;br /&gt;My issue turned out to be that the file was still locked by one of ColdFusion's threads.  I had my cffile delete shortly after a cffile read for the same file.&lt;br /&gt;&lt;br /&gt;The solution was simple, to make a delay in the script so that ColdFusion had enough time to finish the read thread.  There are a few ways to accomplish this, I chose the following:&lt;br /&gt;&lt;cfset createObject(&quot;java&quot;, &quot;java.lang.Thread&quot;).sleep(JavaCast(&quot;int&quot;, 5000))&gt;&lt;br /&gt;where 5000 is the number of milliseconds to delay.</description>
		<dc:creator>morningdew77</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-06-06T07:54:22</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#59185">
		<title>coldfusion/6.1/htmldocs/tags-p30.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#59185</link>
		<description>If you want to delete a file you need the ABSOLUTE path on the machine holding the file itself. &lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;c:\my_website.com\wwwroot\music\my_music_file.mp3&lt;br /&gt;&lt;br /&gt;And in CFML:&lt;br /&gt;&lt;br /&gt;&lt;cffile action=&quot;delete&quot; file=&quot;c:\my_website.com\wwwroot\music\my_music_file.mp3&quot; /&gt;&lt;br /&gt;&lt;br /&gt;As you can see this gives ColdFusion the exact location on the C drive of the computer/server holding the file.&lt;br /&gt;&lt;br /&gt;The disk drive is important. After all, how would you expect ColdFusion to know where the file actually lives?&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;&lt;br /&gt;Michael Pumo.</description>
		<dc:creator>Kapitaine</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-01-08T15:50:32</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#46378">
		<title>coldfusion/6.1/htmldocs/tags-p30.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#46378</link>
		<description>The only way I was able to get around this was to store the fact I needed to remove the file in a varialbe (file name) and then at the end of my script when I redirected to another page I passed the variable in the URL.&lt;br /&gt;&lt;br /&gt;On the page I redirected to I tested for the variable and if found deleted the file.&lt;br /&gt;&lt;br /&gt;Still would be nice to delete the file on the same page though</description>
		<dc:creator>Francisco_Dublin</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-03-24T08:27:59</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#40628">
		<title>coldfusion/6.1/htmldocs/tags-p30.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#40628</link>
		<description>Hi I get the same problem - cant delete for unknown reason.&lt;br /&gt;&lt;br /&gt;I am trying to delete an XML file. Is there any restriction- do I have to specify the mimetype?&lt;br /&gt;&lt;br /&gt;I am using the *same* path in my delete statement that I used for cffile action=&quot;read&quot;.  File permissions are set to 777. &lt;br /&gt;This is on a CFMX 7 LINUX system.  Please macromedia give a tip other than &quot;file/user permissions&quot;.&lt;br /&gt;&lt;br /&gt;Thanks.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-10-10T04:43:36</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#30055">
		<title>coldfusion/6.1/htmldocs/tags-p30.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#30055</link>
		<description>I'm using CFFILE DELETE with Windows UNC path   \\servername\fullpath\userdirectory\ in an application to MOVE and DELETE user files, COPY works fine using the UNS path, but both MOVE and DELETE give me an error stating Coldfusion can't DELETE or MOVE the files for an unknown reason.  All the users have FULL CONTORL of the folders in question.  How can I check to see if Coldfusion has user permission on the server???</description>
		<dc:creator>gpsguy101</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-17T09:57:38</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#23248">
		<title>coldfusion/6.1/htmldocs/tags-p30.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#23248</link>
		<description>I am using absolute paths and it does not let me delete a file. It appears as MX keeps this file active therefore when you try and del it it won't allow giving a message that the file is already in use. &lt;br /&gt;&lt;br /&gt;This is happening when I try and delete application.log files from the cf server. Any ideas?</description>
		<dc:creator>evanb</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-11-01T12:06:58</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#2130">
		<title>coldfusion/6.1/htmldocs/tags-p30.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#2130</link>
		<description>M_howard, /data/home.htm IS an absolute path.&lt;br /&gt;No screen name, try checking the permissions on the file. See if the user Coldfusion is running as has permissions to delete the file.&lt;br /&gt;&lt;br /&gt;(use ps -ef | grep coldfusion to find who coldfusion is running as)&lt;br /&gt;(use ls -al /data to see the who owns the file and the permissions)&lt;br /&gt;(perhaps also check if the directory has permission for that user to delete a file in it)</description>
		<dc:creator>TheoPeters</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-09-25T11:42:01</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#1882">
		<title>coldfusion/6.1/htmldocs/tags-p30.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#1882</link>
		<description>You either need to use an absolute path (e.g., &quot;c:\inetpub\yoursite\yourdirectory\yourfile.doc&quot;) or you need to return the GetTempDirectory like this: file=&quot;#GetTempDirectory()#\data\home.htm&quot;&lt;br /&gt;&lt;br /&gt;Your safest bet is to get the absolute path to the folder on your server where the site is kept.  You can get this from your administrator or from your hosting company.</description>
		<dc:creator>M_Howard</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-09-15T12:23:04</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#1601">
		<title>coldfusion/6.1/htmldocs/tags-p30.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p30.htm#1601</link>
		<description>Hi,&lt;br /&gt;&lt;br /&gt;I am using coldfusion 6, (red sky) on Linux.  There seems to be a bug with the delete fuction.  &lt;br /&gt;&lt;br /&gt;I am trying the following:&lt;br /&gt;&lt;br /&gt;&lt;cffile action=&quot;delete&quot; file=&quot;/data/home.htm&quot;&gt;&lt;br /&gt;&lt;br /&gt;and the error returned is:&lt;br /&gt;&lt;br /&gt;ColdFusion could not delete the file &quot;/data/home.htm&quot; for an unknown reason. &lt;br /&gt;&lt;br /&gt;I have tried playing with permissions etc, but to no avail.&lt;br /&gt;&lt;br /&gt;Can you help me?&lt;br /&gt;&lt;br /&gt;Thanks, &lt;br /&gt;&lt;br /&gt;David</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2003-09-02T03:55:39</dc:date>
	</item>
	</rdf:RDF>

