q = name contains ' ' Google Drive Query to locate SPACES

Viewed 74

I have this google drive query for the Drive REST API 3. q = name contains ' '

It returns a lot of files with and without spaces ( which mean its wrong from my point of view) any suggestions for a way to make it work?

1 Answers

You can try using the following query:

q = name contains '\\s'

I tested it like this in the API explorer from the files.list method of the Drive API V3 and it works perfectly.

enter image description here

Related