Skip to content

Commit

Permalink
check for directory existance
Browse files Browse the repository at this point in the history
  • Loading branch information
grantcopley committed Sep 29, 2024
1 parent a4e8f97 commit d1e2405
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test-harness/tests/specs/CBWIRESpec.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ component extends="coldbox.system.testing.BaseTestCase" {
super.beforeAll();
// delete any files in models/tmp folder
local.tempFolder = expandPath( "../../../models/tmp" );
directoryDelete( local.tempFolder, true );
if ( directoryExists( local.tempFolder ) ) {
directoryDelete( local.tempFolder, true );
}
directoryCreate( local.tempFolder );
}

Expand Down

0 comments on commit d1e2405

Please sign in to comment.