Add Subdirectory to Path
Hi,
I thought this would be simple.
My code
<cfset
Application.data_directory = ExpandPath("data")>
<cfif
not DirectoryExists(Application.data_directory)>
<cfdirectory action = "create" directory = "#Application.data_directory#" >
</cfif>
<cfset
Application.County_Selections_Path = GetDirectoryFromPath(Application.data_directory) & "CountySelections.json">
My results
county_selections_path=C:\ColdFusion8\wwwroot\CountySelections.json
data_directory=C:\ColdFusion8\wwwroot\data
But I really Need
county_selections_path=C:\ColdFusion8\wwwroot\data\CountySelections.json
data_directory=C:\ColdFusion8\wwwroot\data
I need to be certain I use the correct file seperator ("\") for our systems.
Suggestions?
