sregistry/main/google_drive/utils.py
def create_folder(self, folder):
    '''create a folder with a particular name. Be careful, if the folder 
       already exists you can still create one (a different one) with
       the equivalent name!
    '''
    folder_metadata = {
            'name': os.path.basename(folder),
            'mimeType': 'application/vnd.google-apps.folder'
    }
    created = self._service.files().create(body=folder_metadata,
                                           fields='id').execute()
    return created
def create_folder(self, folder):
    '''create a folder with a particular name. Be careful, if the folder 
       already exists you can still create one (a different one) with
       the equivalent name!
    '''
    folder_metadata = {
            'name': os.path.basename(folder),
            'mimeType': 'application/vnd.google-apps.folder'
    }
    created = self._service.files().create(body=folder_metadata,
                                           fields='id').execute()
    return created
def create_folder ( self , folder ) : folder_metadata = { 'name' : os . path . basename ( folder ) , 'mimeType' : 'application/vnd.google-apps.folder' } created = self . _service . files ( ) . create ( body = folder_metadata , fields = 'id' ) . execute ( ) return created
create a folder with a particular name. Be careful, if the folder 
       already exists you can still create one (a different one) with
       the equivalent name!
create a folder with a particular name . Be careful if the folder already exists you can still create one ( a different one ) with the equivalent name!