2.3 Search by query and Copy to Existing Folder
Additional function for search results on Google Drive
 
e.g. mimeType = 'image/jpeg'                        
 
 
insert Folder ID ,see URL folders/... 
 
 
Search query and Copy to Folder
 
 
✓  test only one file
 
 
search files by search criteria
Copy searches files to ID Folder

This function allows user to enter advanced search query on Google Drive for automatically Collect Files copies in Existing Folder . (search query knowledge is required). Incorrect command will cause a no results.  Browsing list helps user to construct correct command or combination of Commands.
e.g. user can insert any specific date or date range, file type, file size, author, owner, tags, etc

To specify the folder where you want to copy files you need insert Folder ID
.  
Folder ID on Google Drive is located in the browser address bar 
 (open folder and from address bar copy ID after – ” /folders/....” )

https://drive.google.com/drive/u/0/folders/0B_z6IokOI27EQnViRFRCYjM3akE

Search does not work for very new files and need time before Google Drive indexes them.


examples of search query


fullText contains 'invoice'
- collects all copied files in New folder on Google Drive which full text contains "invoice".

modifiedDate > '2016-06-18T12:00:00'
- collects all copied files in New folder  on Google Drive, which are modified after  2016-06-18T12:00:00

fullText contains 'invoice' and modifiedDate > '2016-06-18T12:00:00'
- collects all copied files modified after  2016-06-18T12:00:00,  in Existing folder on Google Drive. 

sharedWithMe and fullText contains 'invoice'
- collects all copies of invoices, shared With you in Existing folder on Google Drive.

mimeType contains 'image/'
- collects all copied image files in Existing folder on Google Drive. 

mimeType = 'image/jpeg'
- collects all copied  jpeg image files in Existing folder on Google Drive. 
 
mimeType = 'image/bmp'
- collects all copied  bmp image files in Existing folder on Google Drive. 

mimeType contains 'video/'
- collects all copied  video files in Existing folder on Google Drive. 

mimeType = 'video/avi'
- collects all copied  avi video files in Existing folder on Google Drive. 

mimeType = 'video/mpeg'
- collects all copied  mpeg video files in Existing folder on Google Drive. 

mimeType = 'video/quicktime'
- collects all copied quicktime video files in Existing folder on Google Drive. 

mimeType = 'audio/'
- collects all copied  audio files in Existing folder on Google Drive. 

mimeType = 'audio/mp3'

- collects all copied mp3 audio files in Existing folder on Google Drive. 

mimeType = 'audio/wav'
- collects all copied wav audio files in Existing folder on Google Drive. 

mimeType = 'audio/midi'
- collects all copied midi audio files in Existing folder on Google Drive. 

mimeType = 'audio/mpeg'
- collects all copied mpeg audio files in Existing folder on Google Drive. 

mimeType = 'text/html'
- collects all copied html files in Existing folder on Google Drive. 

mimeType = 'application/vnd.google-apps.spreadsheet'

- collects all copied Google sheet files in Existing folder on Google Drive. 

mimeType = 'application/vnd.google-apps.document'

- collects all copied Google Doc files in Existing folder on Google Drive.