Q = str( papka +" in parents")#papka - id папки
page_token = None
response = service.files().list(
q=Q,
fields='nextPageToken, files(id, name, parents)',
pageToken=page_token).execute()
for file in response.get('files', []):
file_ids.append(str(file.get('id')))
file_names.append(str(file.get('name')))