Factor the generic code into fs and add some more intefaces
This commit is contained in:
parent
bc221fb27e
commit
92ec29fe3f
8 changed files with 630 additions and 504 deletions
|
@ -245,6 +245,19 @@ func (fs *FsSwift) Precision() time.Duration {
|
|||
|
||||
// ------------------------------------------------------------
|
||||
|
||||
// Return the parent Fs
|
||||
func (o *FsObjectSwift) Fs() fs.Fs {
|
||||
return o.swift
|
||||
}
|
||||
|
||||
// Return a string version
|
||||
func (o *FsObjectSwift) String() string {
|
||||
if o == nil {
|
||||
return "<nil>"
|
||||
}
|
||||
return o.remote
|
||||
}
|
||||
|
||||
// Return the remote path
|
||||
func (o *FsObjectSwift) Remote() string {
|
||||
return o.remote
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue