From 48b212dd8e9633835d8a40148cac8fa7cdf1a11f Mon Sep 17 00:00:00 2001 From: Sarasa Kisaragi Date: Sun, 21 Feb 2021 07:32:18 +0800 Subject: [PATCH] Fix HDFS wrong filepath if subpath provided (#11574) --- cmd/gateway/hdfs/gateway-hdfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gateway/hdfs/gateway-hdfs.go b/cmd/gateway/hdfs/gateway-hdfs.go index 5eff3d5d7..10c3bef20 100644 --- a/cmd/gateway/hdfs/gateway-hdfs.go +++ b/cmd/gateway/hdfs/gateway-hdfs.go @@ -497,7 +497,7 @@ func (n *hdfsObjects) populateDirectoryListing(filePath string, fileInfos map[st } for _, fileInfo := range infos { - filePath := n.hdfsPathJoin(filePath, fileInfo.Name()) + filePath := minio.PathJoin(filePath, fileInfo.Name()) fileInfos[filePath] = fileInfo }