public virtual void RenameTo(SmbFile dest)
{
if (GetUncPath0().Length == 1 || dest.GetUncPath0().Length == 1)
{
throw new SmbException("Invalid operation for workgroups, servers, or shares");
}
ResolveDfs(null);
dest.ResolveDfs(null);
if (!Tree.Equals(dest.Tree))
{
throw new SmbException("Invalid operation for workgroups, servers, or shares");
}
if (Log.Level >= 3)
{
Log.WriteLine("renameTo: " + Unc + " -> " + dest.Unc);
}
_attrExpiration = _sizeExpiration = 0;
dest._attrExpiration = 0;
Send(new SmbComRename(Unc, dest.Unc), Blank_resp());
}