vcom/internal/transfer/errors.go

14 lines
487 B
Go
Raw Normal View History

package transfer
import "errors"
// Prepare refuses a request with one of these (wrapped with the path).
var (
ErrSameFile = errors.New("source and target are the same file")
ErrIntoItself = errors.New("cannot copy a directory into itself")
ErrTargetNotDir = errors.New("target is not a directory")
ErrDuplicateName = errors.New("two sources have the same name")
ErrReadOnly = errors.New("read-only file system")
ErrAborted = errors.New("transfer aborted")
)