In my program, I have information about list item:
List list1 = ctx.Web.Lists.GetByTitle("testLib");
ListItem listItem = list1.GetItemById(3);
ctx.Load(list1);
ctx.Load(listItem, w => w.DisplayName, w => w.FileSystemObjectType);
ctx.ExecuteQuery();
I need to know does this list item belong to a folder, i.e. I need to know name of his parent folder (or maybe it doesn't have a parent folder). How can I do that??