From c78fcc616212a586d246c05c951552f90cad7ab4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 25 Oct 2025 02:31:52 -0500 Subject: this func() will force the .cache/ files to exist --- cacheDir.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cacheDir.go') diff --git a/cacheDir.go b/cacheDir.go index 400944e..ac5bd46 100644 --- a/cacheDir.go +++ b/cacheDir.go @@ -43,9 +43,9 @@ func LoadCacheDirByAppname(pb proto.Message, appname string) error { } // checks the UUID and Version of the .pb file -func CreateCacheDirPB(pb proto.Message, appname string, protoname string) error { - // Get ~/.cache/appname/protoname.text - fullname := MakeCacheFilename(appname, protoname) +func CreateCacheDirPB(pb proto.Message, dirname string, filename string) error { + // Get ~/.cache/dirname/filename.text + fullname := MakeCacheFilename(dirname, filename) _, err := SetFilename(pb, fullname) if err != nil { -- cgit v1.2.3