yandex: fix fs.Name()

Put in tests for fs.Root() and fs.Name() for all remotes
This commit is contained in:
Nick Craig-Wood
2017-07-03 13:39:31 +01:00
parent 575e779b55
commit 6c3bf629a1
18 changed files with 59 additions and 2 deletions
+2 -1
View File
@@ -130,7 +130,8 @@ func NewFs(name, root string) (fs.Fs, error) {
yandexDisk := yandex.NewClient(token.AccessToken, fs.Config.Client())
f := &Fs{
yd: yandexDisk,
name: name,
yd: yandexDisk,
}
f.features = (&fs.Features{ReadMimeType: true, WriteMimeType: true}).Fill(f)
f.setRoot(root)