forked from TrueCloudLab/rclone
docs: remote names may not start or end with space
This commit is contained in:
parent
683178a1f4
commit
f650a543ef
2 changed files with 2 additions and 1 deletions
|
@ -340,6 +340,7 @@ Will get their own names
|
||||||
Remote names are case sensitive, and must adhere to the following rules:
|
Remote names are case sensitive, and must adhere to the following rules:
|
||||||
- May only contain `0`-`9`, `A`-`Z`, `a`-`z`, `_`, `-`, `.` and space.
|
- May only contain `0`-`9`, `A`-`Z`, `a`-`z`, `_`, `-`, `.` and space.
|
||||||
- May not start with `-` or space.
|
- May not start with `-` or space.
|
||||||
|
- May not end with space.
|
||||||
|
|
||||||
Quoting and the shell
|
Quoting and the shell
|
||||||
---------------------
|
---------------------
|
||||||
|
|
|
@ -17,7 +17,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
errInvalidCharacters = errors.New("config name contains invalid characters - may only contain `0-9`, `A-Z`, `a-z`, `_`, `-`, `.` and space")
|
errInvalidCharacters = errors.New("config name contains invalid characters - may only contain `0-9`, `A-Z`, `a-z`, `_`, `-`, `.` and space, while not start or end with space")
|
||||||
errCantBeEmpty = errors.New("can't use empty string as a path")
|
errCantBeEmpty = errors.New("can't use empty string as a path")
|
||||||
errCantStartWithDash = errors.New("config name starts with `-`")
|
errCantStartWithDash = errors.New("config name starts with `-`")
|
||||||
errBadConfigParam = errors.New("config parameters may only contain `0-9`, `A-Z`, `a-z` and `_`")
|
errBadConfigParam = errors.New("config parameters may only contain `0-9`, `A-Z`, `a-z` and `_`")
|
||||||
|
|
Loading…
Reference in a new issue