mirror of
https://github.com/rclone/rclone.git
synced 2025-01-19 04:47:54 +02:00
crypt: fix Name and Root
This commit is contained in:
parent
346d4c587c
commit
5b913884cf
@ -86,6 +86,8 @@ func NewFs(name, rpath string) (fs.Fs, error) {
|
|||||||
Fs: wrappedFs,
|
Fs: wrappedFs,
|
||||||
cipher: cipher,
|
cipher: cipher,
|
||||||
mode: mode,
|
mode: mode,
|
||||||
|
name: name,
|
||||||
|
root: rpath,
|
||||||
}
|
}
|
||||||
return f, err
|
return f, err
|
||||||
}
|
}
|
||||||
@ -95,6 +97,18 @@ type Fs struct {
|
|||||||
fs.Fs
|
fs.Fs
|
||||||
cipher Cipher
|
cipher Cipher
|
||||||
mode NameEncryptionMode
|
mode NameEncryptionMode
|
||||||
|
name string
|
||||||
|
root string
|
||||||
|
}
|
||||||
|
|
||||||
|
// Name of the remote (as passed into NewFs)
|
||||||
|
func (f *Fs) Name() string {
|
||||||
|
return f.name
|
||||||
|
}
|
||||||
|
|
||||||
|
// Root of the remote (as passed into NewFs)
|
||||||
|
func (f *Fs) Root() string {
|
||||||
|
return f.root
|
||||||
}
|
}
|
||||||
|
|
||||||
// String returns a description of the FS
|
// String returns a description of the FS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user