From ce4064aabfd48c5efa47084d4d3e6da27f88801e Mon Sep 17 00:00:00 2001 From: nielash Date: Tue, 2 Apr 2024 10:19:56 -0400 Subject: [PATCH] hdfs: fix f.String() not including subpath --- backend/hdfs/fs.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/hdfs/fs.go b/backend/hdfs/fs.go index dfe98bbd4..cf2ee0e60 100644 --- a/backend/hdfs/fs.go +++ b/backend/hdfs/fs.go @@ -150,7 +150,7 @@ func (f *Fs) Root() string { // String returns a description of the FS 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 @@ -210,7 +210,8 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e fs: f, remote: remote, size: x.Size(), - modTime: x.ModTime()}) + modTime: x.ModTime(), + }) } } return entries, nil