|
|
@@ -199,6 +199,10 @@ function replaceMacro(string $filePath,string $targetPath,array $macros){
|
|
|
foreach($macros as $key=>$value){
|
|
|
$content = str_replace($key,$value,$content);
|
|
|
}
|
|
|
+ $targetDir = dirname($targetPath);
|
|
|
+ if(!is_dir($targetDir)){
|
|
|
+ createDirectory($targetDir);
|
|
|
+ }
|
|
|
return file_put_contents($targetPath,$content);
|
|
|
}
|
|
|
|