Я пытаюсь удалить и воссоздать тестовый файл, но я получаю сообщение об ошибке ниже. Может ли кто-нибудь сказать мне, почему это происходит?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