File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ import (
28
28
const (
29
29
// Name prefix for the temporary files.
30
30
tmpPrefix = "."
31
-
32
- // The default permission bits to set on the filestore directory.
33
- directoryPerm = 0700
34
31
)
35
32
36
33
// FileStore is an implementation of the Store interface which stores data in files.
@@ -44,7 +41,7 @@ type FileStore struct {
44
41
45
42
// NewFileStore returns an instance of FileStore.
46
43
func NewFileStore (path string , fs utilfs.Filesystem ) (Store , error ) {
47
- if err := fs .MkdirAll (path , directoryPerm ); err != nil {
44
+ if err := fs .MkdirAll (path , 0755 ); err != nil {
48
45
return nil , err
49
46
}
50
47
return & FileStore {directoryPath : path , filesystem : fs }, nil
@@ -55,7 +52,7 @@ func (f *FileStore) Write(key string, data []byte) error {
55
52
if err := ValidateKey (key ); err != nil {
56
53
return err
57
54
}
58
- if err := f .filesystem .MkdirAll (f .directoryPath , directoryPerm ); err != nil {
55
+ if err := f .filesystem .MkdirAll (f .directoryPath , 0755 ); err != nil {
59
56
return err
60
57
}
61
58
You can’t perform that action at this time.
0 commit comments