mirror of
https://github.com/rclone/rclone.git
synced 2025-01-13 20:38:12 +02:00
ftp: provide valid encoding for ProFtpd, PureFtpd, VsFtpd
This commit is contained in:
parent
48e7246163
commit
dc589d3070
@ -120,13 +120,20 @@ Set to 0 to keep connections indefinitely.
|
|||||||
Name: config.ConfigEncoding,
|
Name: config.ConfigEncoding,
|
||||||
Help: config.ConfigEncodingHelp,
|
Help: config.ConfigEncodingHelp,
|
||||||
Advanced: true,
|
Advanced: true,
|
||||||
// The FTP protocol can't handle trailing spaces (for instance
|
// The FTP protocol can't handle trailing spaces
|
||||||
// pureftpd turns them into _)
|
// (for instance, pureftpd turns them into '_')
|
||||||
//
|
|
||||||
// proftpd can't handle '*' in file names
|
|
||||||
// pureftpd can't handle '[', ']' or '*'
|
|
||||||
Default: (encoder.Display |
|
Default: (encoder.Display |
|
||||||
encoder.EncodeRightSpace),
|
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
|
- Env Var: RCLONE_FTP_ENCODING
|
||||||
- Type: MultiEncoder
|
- Type: MultiEncoder
|
||||||
- Default: Slash,Del,Ctl,RightSpace,Dot
|
- 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 >}}
|
{{< rem autogenerated options stop >}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user