We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97796a7 commit c010023Copy full SHA for c010023
1 file changed
keystore/atomicfile/write.go
@@ -7,7 +7,7 @@ import (
7
"path/filepath"
8
)
9
10
-// WriteFile atomically writes the contents of r to the specified filepath with the default permission 0600.
+// WriteFile atomically writes the contents of r to the specified filepath with the given mode.
11
// This is a copy of https://github.com/natefinch/atomic/blob/master/atomic.go with minor modifications allowing
12
// to set mode of the written file. If the file already exists, its mode is preserved.
13
func WriteFile(filename string, r io.Reader, mode os.FileMode) (err error) {
0 commit comments