테스트 파일을 삭제하고 다시 만들려고하는데 아래 오류가 나타납니다. 아무도 왜 이것이 일어나고 있는지 말해 줄 수 있습니까?ColdFusion에서 알 수없는 이유로 파일을 삭제할 수 없습니다.
오류 :
ColdFusion could not delete the file e:\sample\test2.html for an unknown reason.
코드 : 내가 확인 할
<cfif FileExists("e:\sample\test2.html")>
<cffile action="delete"file="e:\sample\test2.html"><br>
<p>deleted the file </p>
<cfelse>
<p>Sorry, can't delete the file - it doesn't exist.</p>
</cfif>
<cfset createObject("java", "java.lang.Thread").sleep(JavaCast("int", 90000))>
<cfsavecontent variable="HTML">
<cfinclude template="noticeEmail.cfm">
</cfsavecontent>
<cffile action="WRITE" attributes = "normal" nameconflict="Overwrite"
file="e:\sample\test2.html" output="#HTML#">
이것은 오류와는 아무런 관련이 없지만'nameconflict' 속성은'action = "write"'에 적용되지 않으며 업로드 만합니다. – Leigh