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 }