lib/encoder: remove noencode tag and update CONTRIBUTING

This commit is contained in:
Nick Craig-Wood 2020-01-17 14:58:23 +00:00
parent 5697caf20b
commit 5403e1c79a
3 changed files with 2 additions and 14 deletions

View File

@ -337,10 +337,9 @@ Getting going
* Add your remote to the imports in `backend/all/all.go`
* HTTP based remotes are easiest to maintain if they use rclone's rest module, but if there is a really good go SDK then use that instead.
* Try to implement as many optional methods as possible as it makes the remote more usable.
* Use fs/encoder to make sure we can encode any path name and `rclone info` to help determine the encodings needed
* `go install -tags noencode`
* Use lib/encoder to make sure we can encode any path name and `rclone info` to help determine the encodings needed
* `rclone purge -v TestRemote:rclone-info`
* `rclone info -vv --write-json remote.json TestRemote:rclone-info`
* `rclone info --remote-encoding None -vv --write-json remote.json TestRemote:rclone-info`
* `go run cmd/info/internal/build_csv/main.go -o remote.csv remote.json`
* open `remote.csv` in a spreadsheet and examine

View File

@ -1,5 +1,3 @@
// +build !noencode
package encoder
// Standard defines the encoding that is used for paths in- and output by rclone.

View File

@ -1,9 +0,0 @@
// +build noencode
package encoder
// Fake encodings used for testing
const (
EncodeStandard = EncodeZero | EncodeSlash | EncodeDot
Standard = MultiEncoder(EncodeStandard)
)