public List<FileStatus> GetFlolderList(string path)
{
TBufferedTransport tsport = null;
ThriftHadoopFileSystem.Client client = Connect(out tsport);
List<FileStatus> result = null; //new List<FileStatus>();
//客户端可连接 且目录存在
if (client != null && client.exists(new Pathname { pathname = path }))
{
result = client.listStatus(new Pathname() { pathname = path });
tsport.Close();
}
return result;
}