From 03d818fd9f85c00d2f55e0d1f4beb3e0e943b7c5 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 8 Sep 2021 17:44:23 +0200 Subject: [PATCH] Fix tmp export file created in the wrong path --- pkg/models/export.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/export.go b/pkg/models/export.go index eb7d4f70..d3193829 100644 --- a/pkg/models/export.go +++ b/pkg/models/export.go @@ -38,7 +38,7 @@ import ( ) func ExportUserData(s *xorm.Session, u *user.User) (err error) { - exportDir := config.ServiceRootpath.GetString() + "/files/user-export-tmp/" + exportDir := config.FilesBasePath.GetString() + "/user-export-tmp/" err = os.MkdirAll(exportDir, 0700) if err != nil { return err