Skip to content

Commit

Permalink
Leaf 4084 - Directory exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie P Holcomb committed Nov 8, 2023
1 parent 568a2ca commit ad8e623
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion LEAF_Request_Portal/utils/LEAF_importStandardConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,15 @@ function copyDirectory($source, $destination) {
if (is_dir($sourceFile)) {
copyDirectory($sourceFile, $destinationFile);
} else {
copy($sourceFile, $destinationFile);
if (is_dir($destinationFile)) {
copy($sourceFile, $destinationFile);
} else {
// theoretically this should never be hit. All portals should have the same dir structure
// thereby making this mute, but jsut in case.
mkdir($destinationFile);
copy($sourceFile, $destinationFile);
}

}
}
}
Expand Down

0 comments on commit ad8e623

Please sign in to comment.