'Initializes the folder.
Args:
path: Full path to the folder.
name: Name of the folder.
entries: List of folder entries to nest inside this folder.  May contain
Folder or Project objects.  May be None, if the folder is empty.
guid: GUID to use for folder, if not None.
items: List of solution items to include in the folder project.  May be
None, if the folder does not directly contain items.'

def __init__(self, path, name=None, entries=None, guid=None, items=None):

    if name:
        self.name = name
    else:
        self.name = os.path.basename(path)
    self.path = path
    self.guid = guid
    self.entries = sorted(list((entries or [])))
    self.items = list((items or []))
    self.entry_type_guid = ENTRY_TYPE_GUIDS['folder']
