'Creates a folder path from a fully qualified name.
The REST url sent in defines the folder type being created on the Dell
Storage Center backend.  Thus this is generic to server and volume
folders.
:param url: This is the Dell SC REST url for creating the specific
(server or volume) folder type.
:param foldername: The full folder name with path.
:returns: The REST folder object.'

def _create_folder_path(self, url, foldername, ssn=(-1)):

    ssn = self._vet_ssn(ssn)
    path = self._path_to_array(foldername)
    folderpath = ''
    instanceId = ''
    found = True
    scfolder = None
    for folder in path:
        folderpath = (folderpath + folder)
        if found:
            listurl = (url + '/GetList')
            scfolder = self._find_folder(listurl, folderpath, ssn)
            if (scfolder is None):
                found = False
        if (found is False):
            scfolder = self._create_folder(url, instanceId, folder, ssn)
        if (scfolder is None):
            LOG.error('Unable    to    create    folder    path    %s', folderpath)
            break
        instanceId = self._get_id(scfolder)
        folderpath = (folderpath + '/')
    return scfolder
