Skip to content

Commit fcf29da

Browse files
committed
Fix file permissions
1 parent 8b604bb commit fcf29da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

abc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func filePrep(file *string) (err error) {
115115
}
116116
} else {err = nil}
117117
//Create directory structure as needed
118-
os.MkdirAll(filepath.Dir(*file), 644)
118+
os.MkdirAll(filepath.Dir(*file), 0644)
119119
return
120120
}
121121

@@ -297,7 +297,7 @@ func Download(urlRaw, file, byteRange, agent *string, timeout *time.Duration, re
297297
} else {fileFlags = os.O_CREATE | os.O_WRONLY}
298298

299299
//Initialize oFile
300-
oFile, err = os.OpenFile(*file, fileFlags, 644)
300+
oFile, err = os.OpenFile(*file, fileFlags, 0644)
301301
if err != nil {
302302
debug(err)
303303
return

0 commit comments

Comments
 (0)