public bool ReName(string oldPath,string newPath)
{
TBufferedTransport tsport = null;
ThriftHadoopFileSystem.Client client = Connect(out tsport);
bool result = false;
if (client != null)
{
Pathname pn=new Pathname() { pathname = oldPath };
if (client.exists(pn))//如果存在才执行
result = client.rename(pn, new Pathname() { pathname = newPath });
tsport.Close();
}
return result;
}