summaryrefslogtreecommitdiff
path: root/cacheDir.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-25 02:31:52 -0500
committerJeff Carr <[email protected]>2025-10-25 02:31:52 -0500
commitc78fcc616212a586d246c05c951552f90cad7ab4 (patch)
tree8cc66ad17b03334c70d2cbfcdde6760ebc2c17a3 /cacheDir.go
parentaf08523350b6f8db391a14165eeb1b57193b73c2 (diff)
this func() will force the .cache/ files to exist
Diffstat (limited to 'cacheDir.go')
-rw-r--r--cacheDir.go6
1 files changed, 3 insertions, 3 deletions
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 {