swift: Store root for later when we support directories

This commit is contained in:
Nick Craig-Wood 2013-06-27 19:49:35 +01:00
parent 717a0d268b
commit b8c191b51c
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ import (
type FsSwift struct {
c swift.Connection // the connection to the swift server
container string // the container we are working on
root string // the path we are working on if any
}
// FsObjectSwift describes a swift object
@ -100,7 +101,7 @@ func NewFsSwift(path string) (*FsSwift, error) {
if err != nil {
return nil, err
}
f := &FsSwift{c: *c, container: container}
f := &FsSwift{c: *c, container: container, root: directory}
return f, nil
}