internal virtual IInfo QueryPath(string path, int infoLevel)
{
Connect0();
if (Log.Level >= 3)
{
Log.WriteLine("queryPath: " + path);
}
if (Tree.Session.transport.HasCapability(SmbConstants.CapNtSmbs))
{
Trans2QueryPathInformationResponse response = new Trans2QueryPathInformationResponse
(infoLevel);
Send(new Trans2QueryPathInformation(path, infoLevel), response);
return response.Info;
}
else
{
SmbComQueryInformationResponse response = new SmbComQueryInformationResponse(Tree
.Session.transport.Server.ServerTimeZone * 1000 * 60L);
Send(new SmbComQueryInformation(path), response);
return response;
}
}