Merge pull request 'fixing windows export/import of profiles' (#444) from winExport into master
continuous-integration/drone/push Build is pending Details

Reviewed-on: #444
This commit is contained in:
Sarah Jamie Lewis 2022-04-21 22:58:07 +00:00
commit 88ddecae56
1 changed files with 1 additions and 2 deletions

View File

@ -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 {