Fix windows build - fixes #628

Try to make clearer the distinction between OS paths and rclone paths
(remotes) so it is harder to muddle them up.
This commit is contained in:
Nick Craig-Wood 2016-08-18 23:16:47 +01:00
parent 84eb7031bb
commit 6089f443b9
4 changed files with 41 additions and 57 deletions

View file

@ -57,11 +57,11 @@ var utf8Tests = [][2]string{
{string([]byte{'a', 0x80, 'b'}), "a<>b"},
}
func TestCleanUtf8(t *testing.T) {
func TestCleanRemote(t *testing.T) {
f := &Fs{}
f.warned = make(map[string]struct{})
for _, test := range utf8Tests {
got := f.cleanUtf8(test[0])
got := f.cleanRemote(test[0])
expect := test[1]
if got != expect {
t.Fatalf("got %q, expected %q", got, expect)