'Gets logical path of the folder in the tree structure.
Used to generate breadcrumbs'

@property
def logical_path(self):

    folder_path = []
    if self.parent:
        folder_path.extend(self.parent.get_ancestors())
        folder_path.append(self.parent)
    return folder_path
