diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-23 13:47:10 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-23 13:47:10 -0700 |
commit | ccf2e6e4e74fc249a094c2c27de675644f1065cb (patch) | |
tree | d98c966e0f273c5a6052e3c154bd7d75d091aa27 /api/export.go | |
parent | 2b5b8f95ed9de37a15dc68c38c46a1da2bb1e160 (diff) | |
download | chat-ccf2e6e4e74fc249a094c2c27de675644f1065cb.tar.gz chat-ccf2e6e4e74fc249a094c2c27de675644f1065cb.tar.bz2 chat-ccf2e6e4e74fc249a094c2c27de675644f1065cb.zip |
Changing image settings to file settings
Diffstat (limited to 'api/export.go')
-rw-r--r-- | api/export.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/export.go b/api/export.go index 6d7698282..73142a0e4 100644 --- a/api/export.go +++ b/api/export.go @@ -278,11 +278,11 @@ func copyDirToExportWriter(writer ExportWriter, inPath string, outPath string) * } func ExportLocalStorage(writer ExportWriter, options *ExportOptions, teamId string) *model.AppError { - teamDir := utils.Cfg.ImageSettings.Directory + "teams/" + teamId + teamDir := utils.Cfg.FileSettings.Directory + "teams/" + teamId - if utils.Cfg.ImageSettings.DriverName == model.IMAGE_DRIVER_S3 { + if utils.Cfg.FileSettings.DriverName == model.IMAGE_DRIVER_S3 { return model.NewAppError("ExportLocalStorage", "S3 is not supported for local storage export.", "") - } else if utils.Cfg.ImageSettings.DriverName == model.IMAGE_DRIVER_LOCAL { + } else if utils.Cfg.FileSettings.DriverName == model.IMAGE_DRIVER_LOCAL { if err := copyDirToExportWriter(writer, teamDir, EXPORT_LOCAL_STORAGE_FOLDER); err != nil { return err } |