2021-07-06 05:48:57 +08:00
|
|
|
// Package exitcode exports rclone's exit status numbers.
|
|
|
|
package exitcode
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Success is returned when rclone finished without error.
|
|
|
|
Success = iota
|
|
|
|
// UncategorizedError is returned for any error not categorised otherwise.
|
|
|
|
UncategorizedError
|
2024-01-27 22:31:24 +08:00
|
|
|
// UsageError is returned when there was a syntax or usage error in the arguments.
|
|
|
|
UsageError
|
2021-07-06 05:48:57 +08:00
|
|
|
// DirNotFound is returned when a source or destination directory is not found.
|
|
|
|
DirNotFound
|
|
|
|
// FileNotFound is returned when a source or destination file is not found.
|
|
|
|
FileNotFound
|
|
|
|
// RetryError is returned for temporary errors during operations which may be retried.
|
|
|
|
RetryError
|
|
|
|
// NoRetryError is returned for errors from operations which can't/shouldn't be retried.
|
|
|
|
NoRetryError
|
|
|
|
// FatalError is returned for errors one or more retries won't resolve.
|
|
|
|
FatalError
|
|
|
|
// TransferExceeded is returned when network I/O exceeded the quota.
|
|
|
|
TransferExceeded
|
|
|
|
// NoFilesTransferred everything succeeded, but no transfer was made.
|
|
|
|
NoFilesTransferred
|
2023-07-16 00:41:13 +08:00
|
|
|
// DurationExceeded is returned when transfer duration exceeded the quota.
|
|
|
|
DurationExceeded
|
2021-07-06 05:48:57 +08:00
|
|
|
)
|