Hi,
I got randomly an error on a cffile copy :
java.nio.file.FileSystemException: D:\netprint\Images\C01332\VISUELHD\SG_OPTEFR_4_Concert.jpg -> D:\netprint\DOC_demandes\ReqSG_00331742\BIB\SG_OPTEFR_4_Concert.jpg: The process cannot access the file because it is being used by another process.
However my code is executing copy only if target file doesn't exist :
<cfif not fileexists("#DEMrepert#/BIB/#NomImageHD#")>
<cffile action="copy" source="#BIBrepertHD##NomImageHD#" destination="#DEMrepert#/BIB">
</cfif>
I am running Coldfusion 11 on windows 2012 R2 server with Java 8 (jdk1.8.0_66).
As destination file doesn't exist, it looks like issue is on source file being locked by another process. Is there a way to check inside coldfusion if source file is locked by another process ?
Regards,
Pierre.