fs: add fs.ErrorCantUploadEmptyFiles

Any backends which can't upload 0 length files should return this
errror.
This commit is contained in:
Laura 2019-06-29 03:17:53 +02:00 committed by Nick Craig-Wood
parent 38ebdf54be
commit 6ff7b2eaab
1 changed files with 1 additions and 0 deletions

View File

@ -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")