Add Root() to Fs interface

This commit is contained in:
Nick Craig-Wood
2015-09-01 21:49:13 +01:00
parent cbc6bf6a89
commit 92745aa950
8 changed files with 47 additions and 0 deletions
+5
View File
@@ -114,6 +114,11 @@ func (f *FsDropbox) Name() string {
return f.name
}
// The root of the remote (as passed into NewFs)
func (f *FsDropbox) Root() string {
return f.root
}
// String converts this FsDropbox to a string
func (f *FsDropbox) String() string {
return fmt.Sprintf("Dropbox root '%s'", f.root)