From 191e287d75cbacf7a7e42432ce74bbc4c12d5f8b Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Thu, 21 Apr 2022 15:26:09 -0700 Subject: [PATCH] fixing windows export/import of profiles --- peer/cwtchprofilestorage.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/peer/cwtchprofilestorage.go b/peer/cwtchprofilestorage.go index 00ca626..45f6adb 100644 --- a/peer/cwtchprofilestorage.go +++ b/peer/cwtchprofilestorage.go @@ -12,7 +12,6 @@ import ( "git.openprivacy.ca/openprivacy/log" "io" "os" - "path" "path/filepath" "strings" ) @@ -797,7 +796,7 @@ func (cps *CwtchProfileStorage) Export(filename string) error { defer tarWriter.Close() // We need to know the base directory so we can import it later (and prevent duplicates)... - profilePath := path.Base(cps.ProfileDirectory) + profilePath := filepath.Base(cps.ProfileDirectory) err = addFileToTarWriter(profilePath, profileDB, tarWriter) if err != nil {