mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
genbindings/main: create target directory if not already existing
This commit is contained in:
parent
562590fa96
commit
2434084238
@ -50,6 +50,8 @@ func findHeadersInDir(srcDir string) []string {
|
||||
func cleanGeneratedFilesInDir(dirpath string) {
|
||||
log.Printf("Cleaning up output directory %q...", dirpath)
|
||||
|
||||
_ = os.MkdirAll(dirpath, 0755)
|
||||
|
||||
existing, err := os.ReadDir(dirpath)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Loading…
Reference in New Issue
Block a user