Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a1c7dcf63f |
@ -28,8 +28,12 @@ func Path(fileExtension string) (string, error) {
|
||||
}
|
||||
|
||||
for _, path := range paths {
|
||||
if err := os.MkdirAll(filepath.Dir(path), 0744); err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
f, err := os.Create(path)
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
f.Close()
|
||||
return path, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user