dell_storagecenter_driver/dell_storagecenter_api.py
def _find_folder(self, url, foldername):
        """Find a folder on the SC using the specified url.

        Most of the time the folder will already have been created so
        we look for the end folder and check that the rest of the path is
        right.

        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: The portion of the url after the base url (see http class)
                    to use for this operation.  (Can be for Server or Volume
                    folders.)
        :param foldername: Full path to the folder we are looking for.
        :returns: Dell folder object.
        """
        pf = self._get_payload_filter()
        pf.append('scSerialNumber', self.ssn)
        basename = os.path.basename(foldername)
        pf.append('Name', basename)
        # If we have any kind of path we throw it into the filters.
        folderpath = os.path.dirname(foldername)
        if folderpath != '':
            # SC convention is to end with a '/' so make sure we do.
            folderpath += '/'
            pf.append('folderPath', folderpath)
        folder = None
        r = self.client.post(url,
                             pf.payload)
        if self._check_result(r):
            folder = self._get_result(r,
                                      'folderPath',
                                      folderpath)
        return folder
Find a folder on the SC using the specified url.

        Most of the time the folder will already have been created so
        we look for the end folder and check that the rest of the path is
        right.

        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: The portion of the url after the base url (see http class)
                    to use for this operation.  (Can be for Server or Volume
                    folders.)
        :param foldername: Full path to the folder we are looking for.
        :returns: Dell folder object.
        
Find a folder on the SC using the specified url.
Most of the time the folder will already have been created so
we look for the end folder and check that the rest of the path is
right.

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.
Find a folder on the SC using the specified url . Most of the time the folder will already have been created so we look for the end folder and check that the rest of the path is right . 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 .
def _find_folder(self, url, foldername):
        pf = self._get_payload_filter()
        pf.append('scSerialNumber', self.ssn)
        basename = os.path.basename(foldername)
        pf.append('Name', basename)
        folderpath = os.path.dirname(foldername)
        if folderpath != '':
            folderpath += '/'
            pf.append('folderPath', folderpath)
        folder = None
        r = self.client.post(url,
                             pf.payload)
        if self._check_result(r):
            folder = self._get_result(r,
                                      'folderPath',
                                      folderpath)
        return folder
def _find_folder ( self , url , foldername ) : pf = self . _get_payload_filter ( ) pf . append ( 'scSerialNumber' , self . ssn ) basename = os . path . basename ( foldername ) pf . append ( 'Name' , basename ) folderpath = os . path . dirname ( foldername ) if folderpath != '' : folderpath += '/' pf . append ( 'folderPath' , folderpath ) folder = None r = self . client . post ( url , pf . payload ) if self . _check_result ( r ) : folder = self . _get_result ( r , 'folderPath' , folderpath ) return folder
Find a folder on the SC using the specified url.
Find a folder on the SC using the specified url .
"""Find a folder on the SC using the specified url.

        Most of the time the folder will already have been created so
        we look for the end folder and check that the rest of the path is
        right.

        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: The portion of the url after the base url (see http class)
                    to use for this operation.  (Can be for Server or Volume
                    folders.)
        :param foldername: Full path to the folder we are looking for.
        :returns: Dell folder object.
        """ # If we have any kind of path we throw it into the filters. # SC convention is to end with a '/' so make sure we do.
Dell folder object.
Dell folder object .
self
url
The portion of the url after the base url
to use for this operation.  (Can be for Server or Volume
folders.)
The portion of the url after the base url to use for this operation . ( Can be for Server or Volume folders . )
foldername
Full path to the folder we are looking for.
Full path to the folder we are looking for .