Skip to content

Commit c1bc783

Browse files
bpamiriclaude
andcommitted
fix: (W-003) use Java mkdirs() for cross-engine compatibility in adapter tests
DirectoryCreate(path, true) is Lucee-only — Adobe CF only accepts 1 parameter. Replace with Java File.mkdirs() which works on all CFML engines. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b472bef commit c1bc783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/legacyadapter/tests/LegacyAdapterSpec.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ component extends="wheels.WheelsTest" output="false" {
339339
/* Write content to a temp file, scan it, return first finding */
340340
var tempBase = GetTempDirectory() & "wheels-legacy-test-#CreateUUID()#";
341341
var tempDir = tempBase & "/" & arguments.subDir;
342-
DirectoryCreate(tempDir, true);
342+
CreateObject("java", "java.io.File").init(tempDir).mkdirs();
343343
var tempFile = tempDir & "/test.cfm";
344344
FileWrite(tempFile, arguments.content);
345345

0 commit comments

Comments
 (0)