From ecefa6cdd1e7376046bbec82c1b47f7756fea646 Mon Sep 17 00:00:00 2001 From: Daniel Schalla Date: Mon, 25 Jun 2018 18:12:59 +0200 Subject: Implementation of File Exists Function; Delete FileInfos upon Permanent User Delete (#8958) Check if file was deleted on FS Warning message if file couldnt be removed --- utils/file_backend.go | 1 + 1 file changed, 1 insertion(+) (limited to 'utils/file_backend.go') diff --git a/utils/file_backend.go b/utils/file_backend.go index 9ed564592..368e1ba28 100644 --- a/utils/file_backend.go +++ b/utils/file_backend.go @@ -15,6 +15,7 @@ type FileBackend interface { Reader(path string) (io.ReadCloser, *model.AppError) ReadFile(path string) ([]byte, *model.AppError) + FileExists(path string) (bool, *model.AppError) CopyFile(oldPath, newPath string) *model.AppError MoveFile(oldPath, newPath string) *model.AppError WriteFile(fr io.Reader, path string) (int64, *model.AppError) -- cgit v1.2.3-1-g7c22