Documentation ¶
Overview ¶
Package filename provides utilities for encoder.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCorrupted = errors.New("file name corrupt")
ErrCorrupted is returned if a provided encoded filename cannot be decoded.
View Source
var ErrUnsupported = errors.New("file name possibly generated by future version of rclone")
ErrUnsupported is returned if a provided encoding may come from a future version or the file name is corrupt.
Functions ¶
func DecodeBytes ¶ added in v1.55.0
DecodeBytes will decode raw id and data values.
func Encode ¶
Encode will encode the string and return a base64 (url) compatible version of it. Calling Decode with the returned string should always succeed. It is not a requirement that the input string is valid utf-8.
func EncodeBytes ¶ added in v1.55.0
EncodeBytes will compress the given string and return a table identifier and a payload.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.