I think it would be cleaner to have 
```go
if !os.IsNotExist(err) {
     return err
}
mkdir......
```