ftp: provide valid encoding for ProFtpd, PureFtpd, VsFtpd
This commit is contained in:
parent
48e7246163
commit
dc589d3070
2 changed files with 19 additions and 5 deletions
|
@ -120,13 +120,20 @@ Set to 0 to keep connections indefinitely.
|
|||
Name: config.ConfigEncoding,
|
||||
Help: config.ConfigEncodingHelp,
|
||||
Advanced: true,
|
||||
// The FTP protocol can't handle trailing spaces (for instance
|
||||
// pureftpd turns them into _)
|
||||
//
|
||||
// proftpd can't handle '*' in file names
|
||||
// pureftpd can't handle '[', ']' or '*'
|
||||
// The FTP protocol can't handle trailing spaces
|
||||
// (for instance, pureftpd turns them into '_')
|
||||
Default: (encoder.Display |
|
||||
encoder.EncodeRightSpace),
|
||||
Examples: []fs.OptionExample{{
|
||||
Value: "Asterisk,Ctl,Dot,Slash",
|
||||
Help: "ProFTPd can't handle '*' in file names",
|
||||
}, {
|
||||
Value: "BackSlash,Ctl,Del,Dot,RightSpace,Slash,SquareBracket",
|
||||
Help: "PureFTPd can't handle '[]' or '*' in file names",
|
||||
}, {
|
||||
Value: "Ctl,LeftPeriod,Slash",
|
||||
Help: "VsFTPd can't handle file names starting with dot",
|
||||
}},
|
||||
}},
|
||||
})
|
||||
}
|
||||
|
|
|
@ -256,6 +256,13 @@ See: the [encoding section in the overview](/overview/#encoding) for more info.
|
|||
- Env Var: RCLONE_FTP_ENCODING
|
||||
- Type: MultiEncoder
|
||||
- Default: Slash,Del,Ctl,RightSpace,Dot
|
||||
- Examples:
|
||||
- "Asterisk,Ctl,Dot,Slash"
|
||||
- ProFTPd can't handle '*' in file names
|
||||
- "BackSlash,Ctl,Del,Dot,RightSpace,Slash,SquareBracket"
|
||||
- PureFTPd can't handle '[]' or '*' in file names
|
||||
- "Ctl,LeftPeriod,Slash"
|
||||
- VsFTPd can't handle file names starting with dot
|
||||
|
||||
{{< rem autogenerated options stop >}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue