Skip to content

Commit

Permalink
fix darwin file creation
Browse files Browse the repository at this point in the history
Signed-off-by: Vittorio Parrella <vittorioparrella+1@gmail.com>
  • Loading branch information
parvit committed Jul 7, 2024
1 parent 4397ac4 commit 447851b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go2array.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func main() {
var fList *os.File
var err error
if !Options.ignoreFilelist {
fList, err = os.OpenFile(listFilename, os.O_CREATE|os.O_TRUNC, 0777)
fList, err = os.Create(listFilename)
if err != nil {
log.Fatalf("Could not create file %s", listFilename)
}
Expand All @@ -101,7 +101,7 @@ func main() {
}

// data file create
fData, err := os.OpenFile(dataFilename, os.O_CREATE|os.O_TRUNC, 0777)
fData, err := os.Create(dataFilename)
if err != nil {
log.Fatalf("Could not create file %s", dataFilename)
}
Expand Down

0 comments on commit 447851b

Please sign in to comment.