mirror of
https://github.com/rclone/rclone.git
synced 2025-07-11 14:30:44 +02:00
swift: Store root for later when we support directories
This commit is contained in:
@ -20,6 +20,7 @@ import (
|
|||||||
type FsSwift struct {
|
type FsSwift struct {
|
||||||
c swift.Connection // the connection to the swift server
|
c swift.Connection // the connection to the swift server
|
||||||
container string // the container we are working on
|
container string // the container we are working on
|
||||||
|
root string // the path we are working on if any
|
||||||
}
|
}
|
||||||
|
|
||||||
// FsObjectSwift describes a swift object
|
// FsObjectSwift describes a swift object
|
||||||
@ -100,7 +101,7 @@ func NewFsSwift(path string) (*FsSwift, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
f := &FsSwift{c: *c, container: container}
|
f := &FsSwift{c: *c, container: container, root: directory}
|
||||||
return f, nil
|
return f, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user