From 8a531986ebd0905af2b80ce3a7b87bd4f982e0a6 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 7 Sep 2023 18:25:35 -0400 Subject: [PATCH] What??? --- path.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 }