mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 15:30:06 +08:00
hdfs: fix f.String() not including subpath
This commit is contained in:
parent
7c9f1b8917
commit
ce4064aabf
|
@ -150,7 +150,7 @@ func (f *Fs) Root() string {
|
||||||
|
|
||||||
// String returns a description of the FS
|
// String returns a description of the FS
|
||||||
func (f *Fs) String() string {
|
func (f *Fs) String() string {
|
||||||
return fmt.Sprintf("hdfs://%s", f.opt.Namenode)
|
return fmt.Sprintf("hdfs://%s/%s", f.opt.Namenode, f.root)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Features returns the optional features of this Fs
|
// Features returns the optional features of this Fs
|
||||||
|
@ -210,7 +210,8 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e
|
||||||
fs: f,
|
fs: f,
|
||||||
remote: remote,
|
remote: remote,
|
||||||
size: x.Size(),
|
size: x.Size(),
|
||||||
modTime: x.ModTime()})
|
modTime: x.ModTime(),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return entries, nil
|
return entries, nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user