public AFAttributes getAttributes(string path)
{
mainForm.Status("Getting Attributes...");
List<string> searchPaths = new List<string> { path };
AFKeyedResults<string, AFElement> result = AFElement.FindElementsByPath(searchPaths, null);
AFElement elem = result[path];
AFAttributes atts = elem.Attributes;
return atts;
}