Fix tmp export file created in the wrong path

This commit is contained in:
kolaente 2021-09-08 17:44:23 +02:00
parent f019ae42bb
commit 03d818fd9f
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -38,7 +38,7 @@ import (
) )
func ExportUserData(s *xorm.Session, u *user.User) (err error) { 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) err = os.MkdirAll(exportDir, 0700)
if err != nil { if err != nil {
return err return err