2026-11-01 03:56:21 +03:00
|
|
|
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")
|
|
|
|
|
)
|
2026-11-01 04:00:31 +03:00
|
|
|
|
|
|
|
|
// ErrUnsupportedMove is temporary (task 3.5).
|
|
|
|
|
var ErrUnsupportedMove = errors.New("move is not implemented yet")
|