From 6ff7b2eaabb82c5a051f857db4a800337588424c Mon Sep 17 00:00:00 2001 From: Laura Date: Sat, 29 Jun 2019 03:17:53 +0200 Subject: [PATCH] fs: add fs.ErrorCantUploadEmptyFiles Any backends which can't upload 0 length files should return this errror. --- fs/fs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/fs.go b/fs/fs.go index 19ce9d56b..4166c349c 100644 --- a/fs/fs.go +++ b/fs/fs.go @@ -51,6 +51,7 @@ var ( ErrorCantCopy = errors.New("can't copy object - incompatible remotes") ErrorCantMove = errors.New("can't move object - incompatible remotes") ErrorCantDirMove = errors.New("can't move directory - incompatible remotes") + ErrorCantUploadEmptyFiles = errors.New("can't upload empty files to this remote") ErrorDirExists = errors.New("can't copy directory - destination already exists") ErrorCantSetModTime = errors.New("can't set modified time") ErrorCantSetModTimeWithoutDelete = errors.New("can't set modified time without deleting existing object")