Fix HDFS wrong filepath if subpath provided (#11574)

This commit is contained in:
Sarasa Kisaragi
2021-02-21 07:32:18 +08:00
committed by GitHub
parent be7de911c4
commit 48b212dd8e

View File

@@ -497,7 +497,7 @@ func (n *hdfsObjects) populateDirectoryListing(filePath string, fileInfos map[st
} }
for _, fileInfo := range infos { for _, fileInfo := range infos {
filePath := n.hdfsPathJoin(filePath, fileInfo.Name()) filePath := minio.PathJoin(filePath, fileInfo.Name())
fileInfos[filePath] = fileInfo fileInfos[filePath] = fileInfo
} }