Moving filesstore services into shared folder (#16940)

* Moving filesstore services into shared folder

* Fixing app-layers generation

* Renaming from filesstore to filestore
Этот коммит содержится в:
Jesús Espino
2021-03-02 14:37:21 +01:00
коммит произвёл GitHub
родитель 5f9ab3783a
Коммит 78355ae2a7
19 изменённых файлов: 55 добавлений и 55 удалений

Просмотреть файл

@@ -13,7 +13,7 @@ import (
"github.com/pkg/errors"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/services/filesstore"
"github.com/mattermost/mattermost-server/v5/shared/filestore"
"github.com/mattermost/mattermost-server/v5/utils"
"github.com/mattermost/mattermost-server/v5/utils/fileutils"
)
@@ -119,7 +119,7 @@ func getTestResourcesToSetup() []testResourceDetails {
}
func CopyFile(src, dst string) error {
fileBackend, err := filesstore.NewFileBackend(filesstore.FileBackendSettings{DriverName: "local", Directory: ""})
fileBackend, err := filestore.NewFileBackend(filestore.FileBackendSettings{DriverName: "local", Directory: ""})
if err != nil {
return errors.Wrapf(err, "failed to copy file %s to %s", src, dst)
}