mirror of
https://github.com/mappu/miqt.git
synced 2025-01-03 06:08: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) {
|
func cleanGeneratedFilesInDir(dirpath string) {
|
||||||
log.Printf("Cleaning up output directory %q...", dirpath)
|
log.Printf("Cleaning up output directory %q...", dirpath)
|
||||||
|
|
||||||
|
_ = os.MkdirAll(dirpath, 0755)
|
||||||
|
|
||||||
existing, err := os.ReadDir(dirpath)
|
existing, err := os.ReadDir(dirpath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user