getSelection method can return items with full path