Your code looks fine from what little I see of it. Most of the time, issues like this have to do with permissions - which is language agnostic. ;) Does your tomcat user have the correct permissions to create the directory where you're trying to create it? You can configure what user the Tomcat service is running as in the Tomcat service control.
Hope this helps!
Kind regards,
Jordan Michaels
----- Original Message -----
From: "Tommy Byrne" <
tbyr...@gmail.com>
To: "Lucee" <
lu...@googlegroups.com>
Sent: Wednesday, September 2, 2015 11:02:17 AM
Subject: [Lucee] Trying to convert from ColdFusion to Lucee but new to cfml
Pulled an app that was built for ColdFusion and having issues pulling
information from a file within a config folder localhost.cfl
Error (java.io.IOException)
can't create directory
The Error Occurred in
*C:\lucee\tomcat\webapps\ROOT\####\Application.cfc: line 261*
259: <cfloop collection="#application.folders#" item="key">
260: <cfif ! DirectoryExists(application.folders[key])>
*261: <cfdirectory action="create" directory="#application.folders[key]#"
mode="0775" />*
262: </cfif>
263: </cfloop>
*called from* C:\lucee\tomcat\webapps\ROOT\####\Application.cfc: line 48
46: </cftry>
47:
*48: <cfset initializeFolders() />*
49: </cffunction>
Is there something that is not being called correctly or needs to change so
that I can pull data from the files to set my localhost testing environment?
--
See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your ticket NOW -
http://www.cfcamp.org/
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
lucee+un...@googlegroups.com.
To post to this group, send email to
lu...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/04963628-4063-4c27-b64a-55baf98fd637%40googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.