diff --git a/path.go b/path.go index 0e62fb7..326bc92 100644 --- a/path.go +++ b/path.go @@ -12,9 +12,10 @@ type FS struct { path string } -// FileWriter is a writable version of fs.File. +// FileWriter is a writable version of fs.File. type FileWriter interface { - interface { fs.File; io.Writer } + fs.File + io.Writer } // ApplicationUserDataFS returns an FS that an application can use to store user @@ -54,11 +55,11 @@ func appFs (root string, app ApplicationDescription) (*FS, error) { appname = strings.ReplaceAll(appname, "\\", "-") path := filepath.Join(root, appname) - + // ensure the directory actually exists err := os.MkdirAll(path, 755) if err != nil { return nil, err } - + return &FS { path: path }, nil }