mirror of
https://github.com/rclone/rclone.git
synced 2025-12-10 05:13:45 +00:00
Add Root() to Fs interface
This commit is contained in:
@@ -81,6 +81,14 @@ func (f *FsSwift) Name() string {
|
||||
return f.name
|
||||
}
|
||||
|
||||
// The root of the remote (as passed into NewFs)
|
||||
func (f *FsSwift) Root() string {
|
||||
if f.root == "" {
|
||||
return f.container
|
||||
}
|
||||
return f.container + "/" + f.root
|
||||
}
|
||||
|
||||
// String converts this FsSwift to a string
|
||||
func (f *FsSwift) String() string {
|
||||
if f.root == "" {
|
||||
|
||||
Reference in New Issue
Block a user