docs: def _get_id(self, file_path):
          
          ''' a helper method for retrieving id of file or folder '''
          
          title = '%s._get_id' % self.__class__.__name__
          
      # construct request kwargs
          list_kwargs = {
              'spaces': self.drive_space,
              'fields': 'files(id, parents)'
          }
      
      # determine path segments
          path_segments = file_path.split(os.sep)
          
      # walk down parents to file name
          parent_id = ''
          empty_string = ''
          while path_segments:
              walk_query = "name = '%s'" % path_segments.pop(0)
              if parent_id:
                  walk_query += "and '%s' in parents" % parent_id
              list_kwargs['q'] = walk_query
              try:
                  response = self.drive.list(**list_kwargs).execute()
              except:
                  raise DriveConnectionError(title)
              file_list = response.get('files', [])
              if file_list:
                  if path_segments:
                      parent_id = file_list[0].get('id')
                  else:
                      file_id = file_list[0].get('id')
                      return file_id, parent_id
              else:
                  return empty_string, empty_string